Fixed channels appearing out of order when only mentions were present, without any non-mentions

This commit is contained in:
Emi Simpson 2020-03-13 20:40:52 -04:00
parent 08125e8c44
commit b2a6232eb3
No known key found for this signature in database
GPG Key ID: 68FAB2E2E6DFC98B
1 changed files with 1 additions and 1 deletions

View File

@ -328,7 +328,7 @@ unsigned short int
RoomInfoListItem::calculateImportance() const
{
return (hasUnreadMessages_) +
(unreadMsgCount_ != 0) +
(unreadHighlightedMsgCount_ + unreadMsgCount_ != 0) +
(unreadHighlightedMsgCount_ != 0) +
(isInvite()) * 4;
}