Skip to content
Snippets Groups Projects
Unverified Commit 389117f1 authored by Emi Simpson's avatar Emi Simpson
Browse files

Add a comment explaining room importance

parent 0153dc7a
No related branches found
No related tags found
No related merge requests found
...@@ -327,6 +327,11 @@ RoomInfoListItem::updateUnreadMessageCount(int count, int highlightedCount) ...@@ -327,6 +327,11 @@ RoomInfoListItem::updateUnreadMessageCount(int count, int highlightedCount)
unsigned short int unsigned short int
RoomInfoListItem::calculateImportance() const RoomInfoListItem::calculateImportance() const
{ {
// 0: All messages and minor events read
// 1: Contains unread minor events (joins/notices/muted messages)
// 2: Contains unread messages
// 3: Contains mentions
// 4: Is a room invite
return (hasUnreadMessages_) + return (hasUnreadMessages_) +
(unreadHighlightedMsgCount_ + unreadMsgCount_ != 0) + (unreadHighlightedMsgCount_ + unreadMsgCount_ != 0) +
(unreadHighlightedMsgCount_ != 0) + (unreadHighlightedMsgCount_ != 0) +
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment