mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-02-18 04:50:08 +03:00
Do not open again the DM if the user is already seeing it
This commit is contained in:
parent
d9723387eb
commit
a393c4dfae
1 changed files with 3 additions and 1 deletions
|
@ -289,9 +289,11 @@ class RoomDetailViewModel @AssistedInject constructor(
|
||||||
_viewEvents.post(RoomDetailViewEvents.OpenRoom(roomId))
|
_viewEvents.post(RoomDetailViewEvents.OpenRoom(roomId))
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
if (existingDmRoomId != initialState.roomId) {
|
||||||
_viewEvents.post(RoomDetailViewEvents.OpenRoom(existingDmRoomId))
|
_viewEvents.post(RoomDetailViewEvents.OpenRoom(existingDmRoomId))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private fun handleJumpToReadReceipt(action: RoomDetailAction.JumpToReadReceipt) {
|
private fun handleJumpToReadReceipt(action: RoomDetailAction.JumpToReadReceipt) {
|
||||||
room.getUserReadReceipt(action.userId)
|
room.getUserReadReceipt(action.userId)
|
||||||
|
|
Loading…
Add table
Reference in a new issue