back out small avatars for emotes for now as they conflict with the E2E artwork.

they will be reintroduced once we have lozenges
This commit is contained in:
Matthew Hodgson 2016-09-11 22:49:05 +01:00
parent 83209197f4
commit 46205ad83c
2 changed files with 4 additions and 2 deletions

View file

@ -346,6 +346,7 @@ module.exports = React.createClass({
continuation = true;
}
/*
// Work out if this is still a continuation, as we are now showing commands
// and /me messages with their own little avatar. The case of a change of
// event type (commands) is handled above, but we need to handle the /me
@ -357,6 +358,7 @@ module.exports = React.createClass({
&& prevEvent.getContent().msgtype === 'm.emote') {
continuation = false;
}
*/
// local echoes have a fake date, which could even be yesterday. Treat them
// as 'today' for the date separators.

View file

@ -375,7 +375,7 @@ module.exports = React.createClass({
// Info messages are basically information about commands processed on a
// room, or emote messages
var isInfoMessage = (msgtype === 'm.emote' || eventType !== 'm.room.message');
var isInfoMessage = false; // (msgtype === 'm.emote' || eventType !== 'm.room.message');
var EventTileType = sdk.getComponent(eventTileTypes[eventType]);
// This shouldn't happen: the caller should check we support this type
@ -422,7 +422,7 @@ module.exports = React.createClass({
needsSenderProfile = false;
} else {
avatarSize = 30;
needsSenderProfile = true;
needsSenderProfile = (eventType === 'm.room.message');
}
if (this.props.mxEvent.sender && avatarSize) {