Adapt to cell data changes

This commit is contained in:
ismailgulek
2021-09-22 11:46:12 +03:00
parent 0903e38e44
commit b9b7b4e1da
6 changed files with 13 additions and 17 deletions
@@ -44,8 +44,9 @@
- (NSUInteger)notificationCount
{
MXRoom *room = [self.mxSession roomWithRoomId:self.roomSummary.roomId];
// Ignore the regular notification count if the room is in 'mentions only" mode at the Riot level.
if (self.roomSummary.room.isMentionsOnly)
if (room.isMentionsOnly)
{
// Only the highlighted missed messages must be considered here.
return self.roomSummary.highlightCount;