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

View file

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