From 63224ff16414d355a6678161aeaca38e2e5c0f7a Mon Sep 17 00:00:00 2001 From: Luke Barnard Date: Wed, 26 Apr 2017 18:00:25 +0100 Subject: [PATCH] Add mx_EventTile_emote class --- 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 9dc1087ce5..d1486d22c9 100644 --- a/src/components/views/rooms/EventTile.js +++ b/src/components/views/rooms/EventTile.js @@ -401,8 +401,7 @@ module.exports = WithMatrixClient(React.createClass({ var msgtype = content.msgtype; var eventType = this.props.mxEvent.getType(); - // Info messages are basically information about commands processed on a - // room, or emote messages + // Info messages are basically information about commands processed on a room var isInfoMessage = (eventType !== 'm.room.message'); var EventTileType = sdk.getComponent(eventTileTypes[eventType]); @@ -430,7 +429,8 @@ module.exports = WithMatrixClient(React.createClass({ menu: this.state.menu, mx_EventTile_verified: this.state.verified == true, mx_EventTile_unverified: this.state.verified == false, - mx_EventTile_bad: this.props.mxEvent.getContent().msgtype === 'm.bad.encrypted', + mx_EventTile_bad: msgtype === 'm.bad.encrypted', + mx_EventTile_emote: msgtype === 'm.emote', mx_EventTile_redacted: isRedacted, });