summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorEmi Simpson <emi@alchemi.dev>2020-03-13 20:40:52 -0400
committerEmi Simpson <emi@alchemi.dev>2020-03-13 20:40:52 -0400
commitb2a6232eb3470844434b234a23f547b3727fce87 (patch)
tree737cb06062c8c811759259d37dc03c48b431c335 /src
parentSort room list by room priority (diff)
downloadnheko-b2a6232eb3470844434b234a23f547b3727fce87.tar.xz
Fixed channels appearing out of order when only mentions were present, without any non-mentions
Diffstat (limited to 'src')
-rw-r--r--src/RoomInfoListItem.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/RoomInfoListItem.cpp b/src/RoomInfoListItem.cpp

index 78718285..8e4ccbb9 100644 --- a/src/RoomInfoListItem.cpp +++ b/src/RoomInfoListItem.cpp
@@ -328,7 +328,7 @@ unsigned short int RoomInfoListItem::calculateImportance() const { return (hasUnreadMessages_) + - (unreadMsgCount_ != 0) + + (unreadHighlightedMsgCount_ + unreadMsgCount_ != 0) + (unreadHighlightedMsgCount_ != 0) + (isInvite()) * 4; }