mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-22 01:22:46 +02:00
"Mark as unread" dot appears on rooms that are actually unread, not marked as such (#7352)
* fix green dot only to appear for marked action
This commit is contained in:
@@ -63,8 +63,12 @@
|
||||
|
||||
- (BOOL)hasUnread
|
||||
{
|
||||
bool isRoomUnread = [[self mxSession] isRoomMarkedAsUnread:roomSummary.roomId];
|
||||
return (roomSummary.localUnreadEventCount != 0 || isRoomUnread);
|
||||
return (roomSummary.localUnreadEventCount != 0);
|
||||
}
|
||||
|
||||
- (BOOL)isRoomMarkedAsUnread
|
||||
{
|
||||
return [[self mxSession] isRoomMarkedAsUnread:roomSummary.roomId];;
|
||||
}
|
||||
|
||||
- (NSString *)roomIdentifier
|
||||
|
||||
@@ -50,6 +50,7 @@
|
||||
@property (nonatomic, readonly) NSString *lastEventDate;
|
||||
|
||||
@property (nonatomic, readonly) BOOL hasUnread;
|
||||
@property (nonatomic, readonly) BOOL isRoomMarkedAsUnread;
|
||||
@property (nonatomic, readonly) NSUInteger notificationCount;
|
||||
@property (nonatomic, readonly) NSUInteger highlightCount;
|
||||
@property (nonatomic, readonly) NSString *notificationCountStringValue;
|
||||
|
||||
Reference in New Issue
Block a user