From e6b4b8c1cbcf7e4cf5e54d963b56aaab3f21482f Mon Sep 17 00:00:00 2001 From: Matthew Hodgson Date: Sun, 11 Sep 2016 23:01:20 +0100 Subject: [PATCH] bring back small avatars for info msgs otherwise the design breaks --- src/components/views/rooms/EventTile.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/views/rooms/EventTile.js b/src/components/views/rooms/EventTile.js index b11f9b1291..702cf94a68 100644 --- a/src/components/views/rooms/EventTile.js +++ b/src/components/views/rooms/EventTile.js @@ -375,7 +375,7 @@ module.exports = React.createClass({ // Info messages are basically information about commands processed on a // room, or emote messages - var isInfoMessage = false; // (msgtype === 'm.emote' || eventType !== 'm.room.message'); + var isInfoMessage = (eventType !== 'm.room.message'); var EventTileType = sdk.getComponent(eventTileTypes[eventType]); // This shouldn't happen: the caller should check we support this type @@ -412,7 +412,7 @@ module.exports = React.createClass({ avatarSize = 24; needsSenderProfile = true; } else if (isInfoMessage) { - // a small avatar, with no sender profile, for emotes and + // a small avatar, with no sender profile, for // joins/parts/etc avatarSize = 14; needsSenderProfile = false; @@ -422,7 +422,7 @@ module.exports = React.createClass({ needsSenderProfile = false; } else { avatarSize = 30; - needsSenderProfile = (eventType === 'm.room.message'); + needsSenderProfile = true; } if (this.props.mxEvent.sender && avatarSize) {