Without doing this, it's possible to start NeoChat and have no badge count despite having notable notifications. The reason for this is if badgeNotificationCount was updated and changed before this function call, and a call to refreshBadgeNotificationCount doesn't emit the changed signal. This is easy to work around by calling updateBadgeNotificationCount ourselves.
12 KiB
12 KiB