From afd1ab1582980fd09270c665b47bbfcc4d7ef7e0 Mon Sep 17 00:00:00 2001 From: wmwragg Date: Thu, 18 Aug 2016 22:19:23 +0100 Subject: [PATCH] Comment to describe what info messages are --- src/components/views/rooms/EventTile.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components/views/rooms/EventTile.js b/src/components/views/rooms/EventTile.js index cf013c0ae4..7f88f08226 100644 --- a/src/components/views/rooms/EventTile.js +++ b/src/components/views/rooms/EventTile.js @@ -363,6 +363,9 @@ module.exports = React.createClass({ var content = this.props.mxEvent.getContent(); var msgtype = content.msgtype; var eventType = this.props.mxEvent.getType(); + + // Info messages are basically information about commands processed on a + // room, or emote messages var isInfoMessage = (msgtype === 'm.emote' || eventType !== 'm.room.message'); var EventTileType = sdk.getComponent(eventTileTypes[this.props.mxEvent.getType()]);