Add mx_EventTile_emote class
parent
1913a32fbd
commit
63224ff164
|
@ -401,8 +401,7 @@ module.exports = WithMatrixClient(React.createClass({
|
||||||
var msgtype = content.msgtype;
|
var msgtype = content.msgtype;
|
||||||
var eventType = this.props.mxEvent.getType();
|
var eventType = this.props.mxEvent.getType();
|
||||||
|
|
||||||
// Info messages are basically information about commands processed on a
|
// Info messages are basically information about commands processed on a room
|
||||||
// room, or emote messages
|
|
||||||
var isInfoMessage = (eventType !== 'm.room.message');
|
var isInfoMessage = (eventType !== 'm.room.message');
|
||||||
|
|
||||||
var EventTileType = sdk.getComponent(eventTileTypes[eventType]);
|
var EventTileType = sdk.getComponent(eventTileTypes[eventType]);
|
||||||
|
@ -430,7 +429,8 @@ module.exports = WithMatrixClient(React.createClass({
|
||||||
menu: this.state.menu,
|
menu: this.state.menu,
|
||||||
mx_EventTile_verified: this.state.verified == true,
|
mx_EventTile_verified: this.state.verified == true,
|
||||||
mx_EventTile_unverified: this.state.verified == false,
|
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,
|
mx_EventTile_redacted: isRedacted,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue