bring back small avatars for info msgs otherwise the design breaks

This commit is contained in:
Matthew Hodgson 2016-09-11 23:01:20 +01:00
parent 46205ad83c
commit e6b4b8c1cb

View file

@ -375,7 +375,7 @@ module.exports = React.createClass({
// Info messages are basically information about commands processed on a // Info messages are basically information about commands processed on a
// room, or emote messages // 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]); var EventTileType = sdk.getComponent(eventTileTypes[eventType]);
// This shouldn't happen: the caller should check we support this type // This shouldn't happen: the caller should check we support this type
@ -412,7 +412,7 @@ module.exports = React.createClass({
avatarSize = 24; avatarSize = 24;
needsSenderProfile = true; needsSenderProfile = true;
} else if (isInfoMessage) { } else if (isInfoMessage) {
// a small avatar, with no sender profile, for emotes and // a small avatar, with no sender profile, for
// joins/parts/etc // joins/parts/etc
avatarSize = 14; avatarSize = 14;
needsSenderProfile = false; needsSenderProfile = false;
@ -422,7 +422,7 @@ module.exports = React.createClass({
needsSenderProfile = false; needsSenderProfile = false;
} else { } else {
avatarSize = 30; avatarSize = 30;
needsSenderProfile = (eventType === 'm.room.message'); needsSenderProfile = true;
} }
if (this.props.mxEvent.sender && avatarSize) { if (this.props.mxEvent.sender && avatarSize) {