Mention badge + badge behaviour redesign (#2276)

This commit is contained in:
Mauro
2023-12-21 16:05:39 +01:00
committed by GitHub
parent 68217bfd25
commit d148827eae
20 changed files with 214 additions and 84 deletions
@@ -300,17 +300,16 @@ class HomeScreenViewModel: HomeScreenViewModelType, HomeScreenViewModelProtocol
private func buildRoom(with details: RoomSummaryDetails, invalidated: Bool) -> HomeScreenRoom {
let identifier = invalidated ? "invalidated-" + details.id : details.id
let notificationMode = details.notificationMode == .allMessages ? nil : details.notificationMode
return HomeScreenRoom(id: identifier,
roomId: details.id,
name: details.name,
hasUnreads: details.unreadNotificationCount > 0,
hasUnreads: details.unreadMessagesCount > 0,
hasMentions: details.unreadMentionsCount > 0,
hasOngoingCall: details.hasOngoingCall,
timestamp: details.lastMessageFormattedTimestamp,
lastMessage: details.lastMessage,
avatarURL: details.avatarURL,
notificationMode: notificationMode)
notificationMode: details.notificationMode)
}
private func updateVisibleRange(_ range: Range<Int>) {