Do not render notification if the user has dismiss the notification.

It should not change anything, just avoid doing useless notification rendering.
This commit is contained in:
Benoit Marty 2023-09-15 15:42:01 +02:00 committed by Benoit Marty
parent 3bf8093cca
commit 096c935874
5 changed files with 44 additions and 31 deletions

View file

@ -28,7 +28,7 @@ class FakeNotificationDrawerManager : NotificationDrawerManager {
clearMemberShipNotificationForSessionCallsCount.merge(sessionId.value, 1) { oldValue, value -> oldValue + value }
}
override fun clearMembershipNotificationForRoom(sessionId: SessionId, roomId: RoomId) {
override fun clearMembershipNotificationForRoom(sessionId: SessionId, roomId: RoomId, doRender: Boolean) {
val key = getMembershipNotificationKey(sessionId, roomId)
clearMemberShipNotificationForRoomCallsCount.merge(key, 1) { oldValue, value -> oldValue + value }
}