Fix unread markers in condensed messages

This commit is contained in:
Pavel Djundik 2018-07-23 12:27:52 +03:00 committed by Pavel Djundik
parent 2c5549a567
commit e91f2aa024

View file

@ -139,6 +139,11 @@ export default {
// Set id of the condensed container to last message id,
// which is required for the unread marker to work correctly
lastCondensedContainer.id = message.id;
// If this message is the unread boundary, create a split condensed container
if (message.id === this.channel.firstUnread) {
lastCondensedContainer = null;
}
}
return condensed;