You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-18 09:22:18 +03:00
Add comment.
This commit is contained in:
@ -450,6 +450,11 @@ module.exports = React.createClass({
|
|||||||
if (prevEvent !== null
|
if (prevEvent !== null
|
||||||
&& prevEvent.sender && mxEv.sender
|
&& prevEvent.sender && mxEv.sender
|
||||||
&& mxEv.sender.userId === prevEvent.sender.userId
|
&& 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)) {
|
&& Boolean(mxEv.getContent().body) == Boolean(prevEvent.getContent().body)) {
|
||||||
continuation = true;
|
continuation = true;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user