mirror of
https://github.com/element-hq/element-android
synced 2024-11-28 21:48:50 +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,7 +289,9 @@ class RoomDetailViewModel @AssistedInject constructor(
|
|||
_viewEvents.post(RoomDetailViewEvents.OpenRoom(roomId))
|
||||
}
|
||||
} else {
|
||||
_viewEvents.post(RoomDetailViewEvents.OpenRoom(existingDmRoomId))
|
||||
if (existingDmRoomId != initialState.roomId) {
|
||||
_viewEvents.post(RoomDetailViewEvents.OpenRoom(existingDmRoomId))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue