Merge pull request #2354 from element-hq/feature/bma/markUnread

Mark room as unread
This commit is contained in:
Benoit Marty 2024-02-08 17:36:29 +01:00 committed by GitHub
commit e73a480495
31 changed files with 542 additions and 76 deletions

View file

@ -155,6 +155,14 @@ class MessagesPresenter @AssistedInject constructor(
mutableStateOf(false)
}
LaunchedEffect(Unit) {
// Mark the room as read on entering but don't send read receipts
// as those will be handled by the timeline.
withContext(dispatchers.io) {
room.markAsRead(null)
}
}
LaunchedEffect(syncUpdateFlow.value) {
withContext(dispatchers.io) {
canJoinCall = room.canUserJoinCall(room.sessionId).getOrDefault(false)