Add the badge value for Home tab bar item.

Fix the missed discussion count
This commit is contained in:
Giom Foret
2017-04-18 15:55:51 +02:00
parent b110517ec6
commit f8141d5c27
7 changed files with 132 additions and 42 deletions
+12
View File
@@ -24,6 +24,18 @@
// self.roomDisplayname returns this value instead of the mother class.
@synthesize roomDisplayname;
- (NSUInteger)notificationCount
{
// Ignore the regular notification count if the room is in 'mentions only" mode at the Riot level.
if (self.roomSummary.room.isMentionsOnly)
{
// Only the highlighted missed messages must be considered here.
return self.roomSummary.highlightCount;
}
return self.roomSummary.notificationCount;
}
- (void)update
{
[super update];