);
- if (this.props.mxEvent.getType() !== this.props.mxEvent.getWireType()) {
+ if (mxEvent.getType() !== mxEvent.getWireType()) {
viewClearSourceButton = (
{ _t('View Decrypted Source') }
@@ -303,8 +308,11 @@ module.exports = React.createClass({
// XXX: if we use room ID, we should also include a server where the event can be found (other than in the domain of the event ID)
const permalinkButton = (
);
@@ -318,12 +326,12 @@ module.exports = React.createClass({
// Bridges can provide a 'external_url' to link back to the source.
if (
- typeof(this.props.mxEvent.event.content.external_url) === "string" &&
- isUrlPermitted(this.props.mxEvent.event.content.external_url)
+ typeof(mxEvent.event.content.external_url) === "string" &&
+ isUrlPermitted(mxEvent.event.content.external_url)
) {
externalURLButton = (
-
+
+
);
},
diff --git a/src/components/views/rooms/MessageComposer.js b/src/components/views/rooms/MessageComposer.js
index be6fbee4f6..8f3768864b 100644
--- a/src/components/views/rooms/MessageComposer.js
+++ b/src/components/views/rooms/MessageComposer.js
@@ -362,34 +362,6 @@ export default class MessageComposer extends React.Component {
const canSendMessages = !this.state.tombstone &&
this.props.room.maySendMessage();
- // TODO: Remove temporary logging for riot-web#7838
- // Note: we rip apart the power level event ourselves because we don't want to
- // log too much data about it - just the bits we care about. Many of the variables
- // logged here are to help figure out where in the stack the 'cannot post in room'
- // warning is coming from. This means logging various numbers from the PL event to
- // verify RoomState._maySendEventOfType is doing the right thing.
- const room = this.props.room;
- const plEvent = room.currentState.getStateEvents('m.room.power_levels', '');
- let plEventString = "";
- if (plEvent) {
- const content = plEvent.getContent();
- if (!content) {
- plEventString = "";
- } else {
- const stringifyFalsey = (v) => v === null ? '' : (v === undefined ? '' : v);
- const actualUserPl = stringifyFalsey(content.users ? content.users[room.myUserId] : "");
- const usersPl = stringifyFalsey(content.users_default);
- const actualEventPl = stringifyFalsey(content.events ? content.events['m.room.message'] : "");
- const eventPl = stringifyFalsey(content.events_default);
- plEventString = `actualUserPl=${actualUserPl} defaultUserPl=${usersPl} actualEventPl=${actualEventPl} defaultEventPl=${eventPl}`;
- }
- }
- console.log(
- `[riot-web#7838] renderComposer() hasTombstone=${!!this.state.tombstone} maySendMessage=${room.maySendMessage()}` +
- ` myMembership=${room.getMyMembership()} maySendEvent=${room.currentState.maySendEvent('m.room.message', room.myUserId)}` +
- ` myUserId=${room.myUserId} roomId=${room.roomId} hasPlEvent=${!!plEvent} powerLevels='${plEventString}'`
- );
-
if (canSendMessages) {
// This also currently includes the call buttons. Really we should
// check separately for whether we can call, but this is slightly
@@ -469,8 +441,6 @@ export default class MessageComposer extends React.Component {
);
} else {
- // TODO: Remove temporary logging for riot-web#7838
- console.log("[riot-web#7838] Falling back to showing cannot post in room error");
controls.push(
{ _t('You do not have permission to post to this room') }
diff --git a/src/components/views/rooms/WhoIsTypingTile.js b/src/components/views/rooms/WhoIsTypingTile.js
index dba40f033a..9dd690f6e5 100644
--- a/src/components/views/rooms/WhoIsTypingTile.js
+++ b/src/components/views/rooms/WhoIsTypingTile.js
@@ -170,6 +170,7 @@ module.exports = React.createClass({
width={24}
height={24}
resizeMethod="crop"
+ viewUserOnClick={true}
/>
);
});
diff --git a/src/i18n/strings/en_EN.json b/src/i18n/strings/en_EN.json
index 5e4765b3af..cf90c0a280 100644
--- a/src/i18n/strings/en_EN.json
+++ b/src/i18n/strings/en_EN.json
@@ -540,6 +540,7 @@
"Labs": "Labs",
"Notifications": "Notifications",
"Start automatically after system login": "Start automatically after system login",
+ "Close button should minimize window to tray": "Close button should minimize window to tray",
"Preferences": "Preferences",
"Composer": "Composer",
"Timeline": "Timeline",
@@ -1202,6 +1203,7 @@
"View Decrypted Source": "View Decrypted Source",
"Unhide Preview": "Unhide Preview",
"Share Message": "Share Message",
+ "Share Permalink": "Share Permalink",
"Quote": "Quote",
"Source URL": "Source URL",
"Collapse Reply Thread": "Collapse Reply Thread",