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
-14
View File
@@ -54,18 +54,6 @@
return self;
}
// Ignore regular notification count if the room is in 'mentions only" mode
- (NSUInteger)notificationCount
{
if (self.room.isMentionsOnly)
{
// Only the highlighted missed messages are counted
return super.highlightCount;
}
return super.notificationCount;
}
- (void)didReceiveReceiptEvent:(MXEvent *)receiptEvent roomState:(MXRoomState *)roomState
{
// Override this callback to force rendering of each cell with read receipts information.
@@ -84,8 +72,6 @@
cellData.hasReadReceipts = YES;
}
// Let super handle this receipt
[super didReceiveReceiptEvent:receiptEvent roomState:roomState];
}