Account for pending invites in the badge notification count
This commit is contained in:
@@ -159,6 +159,10 @@ void NeoChatConnection::refreshBadgeNotificationCount()
|
||||
for (const auto &r : allRooms()) {
|
||||
if (const auto room = static_cast<NeoChatRoom *>(r)) {
|
||||
count += room->contextAwareNotificationCount();
|
||||
|
||||
if (room->joinState() == JoinState::Invite) {
|
||||
count++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user