Revert "Handle non-m.room.message event types."

This reverts commit f8d7ab10fa.
This commit is contained in:
Luke Barnard 2018-04-06 16:42:59 +01:00
parent fb9b376cb8
commit 008572afe1
2 changed files with 2 additions and 8 deletions

View file

@ -450,12 +450,7 @@ module.exports = React.createClass({
if (prevEvent !== null
&& prevEvent.sender && mxEv.sender
&& mxEv.sender.userId === prevEvent.sender.userId
// The preferred way of checking for 'continuation messages' is by
// checking whether subsiquent messages from the same user have a
// message body. This is because all messages intended to be displayed
// should have a 'body' whereas some (non-m.room) messages (such as
// m.sticker) may not have a message 'type'.
&& Boolean(mxEv.getContent().body) == Boolean(prevEvent.getContent().body)) {
&& mxEv.getType() == prevEvent.getType()) {
continuation = true;
}