-
Notifications
You must be signed in to change notification settings - Fork 226
Clear existing notification when a room is marked as read #3203
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
… since it actually contains only method to remove notifications.
@@ -268,6 +270,7 @@ class RoomListPresenter @Inject constructor( | |||
} | |||
|
|||
private fun CoroutineScope.markAsRead(roomId: RoomId) = launch { | |||
notificationCleaner.clearMessagesForRoom(client.sessionId, roomId) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the fix!
📱 Scan the QR code below to install the build (arm64 only) for this PR. |
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #3203 +/- ##
========================================
Coverage 76.14% 76.14%
========================================
Files 1645 1644 -1
Lines 38756 38758 +2
Branches 7501 7501
========================================
+ Hits 29510 29512 +2
+ Misses 5351 5350 -1
- Partials 3895 3896 +1 ☔ View full report in Codecov by Sentry. |
clearMessagesForRoomLambda.assertions().isCalledOnce() | ||
.with(value(A_SESSION_ID), value(A_ROOM_ID)) | ||
initialState.eventSink.invoke(RoomListEvents.MarkAsUnread(A_ROOM_ID_2)) | ||
assertThat(room2.markAsReadCalls).isEqualTo(emptyList<ReceiptType>()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Konsist test should have failed here...
Content
First commit are cleanup and small rework.
Last commit is to clear existing notification when a room is marked as read
Motivation and context
Clear existing notification when a room is marked as read (context: #3184)
Screenshots / GIFs
Tests
Tested devices
Checklist