mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-10 14:26:34 +00:00
chore(badge): stop counting contact request in chat section badge
Fixes #9152
This commit is contained in:
parent
b2328d6643
commit
dbaa285f4c
@ -388,7 +388,6 @@ method getChatContentModule*(self: Module, chatId: string): QVariant =
|
|||||||
proc updateParentBadgeNotifications(self: Module) =
|
proc updateParentBadgeNotifications(self: Module) =
|
||||||
var (sectionHasUnreadMessages, sectionNotificationCount) = self.view.chatsModel().getAllNotifications()
|
var (sectionHasUnreadMessages, sectionNotificationCount) = self.view.chatsModel().getAllNotifications()
|
||||||
if(not self.controller.isCommunity()):
|
if(not self.controller.isCommunity()):
|
||||||
sectionNotificationCount += self.view.contactRequestsModel().getCount()
|
|
||||||
sectionHasUnreadMessages = sectionHasUnreadMessages or sectionNotificationCount > 0
|
sectionHasUnreadMessages = sectionHasUnreadMessages or sectionNotificationCount > 0
|
||||||
self.delegate.onNotificationsUpdated(self.controller.getMySectionId(), sectionHasUnreadMessages, sectionNotificationCount)
|
self.delegate.onNotificationsUpdated(self.controller.getMySectionId(), sectionHasUnreadMessages, sectionNotificationCount)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user