From b2a6232eb3470844434b234a23f547b3727fce87 Mon Sep 17 00:00:00 2001
From: Emi Simpson <emi@alchemi.dev>
Date: Fri, 13 Mar 2020 20:40:52 -0400
Subject: [PATCH] Fixed channels appearing out of order when only mentions were
 present, without any non-mentions

---
 src/RoomInfoListItem.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/RoomInfoListItem.cpp b/src/RoomInfoListItem.cpp
index 787182852..8e4ccbb9a 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;
 }
-- 
GitLab