bring back small avatars for info msgs otherwise the design breaks
This commit is contained in:
parent
46205ad83c
commit
e6b4b8c1cb
1 changed files with 3 additions and 3 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue