mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 16:10:00 +00:00
Subscrie to RoomInfoFlow instead of pushing the JoinRoom. The user may be a member of the room, and in this case, it will be more direct.
This commit is contained in:
committed by
Benoit Marty
parent
1b8dd2cded
commit
378d2c0a05
@@ -147,7 +147,7 @@ class RoomFlowNode @AssistedInject constructor(
|
|||||||
is NavTarget.Resolving -> {
|
is NavTarget.Resolving -> {
|
||||||
val callback = object : RoomAliasResolverEntryPoint.Callback {
|
val callback = object : RoomAliasResolverEntryPoint.Callback {
|
||||||
override fun onAliasResolved(roomId: RoomId) {
|
override fun onAliasResolved(roomId: RoomId) {
|
||||||
backstack.newRoot(NavTarget.JoinRoom(roomId))
|
subscribeToRoomInfoFlow(roomId)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
val params = RoomAliasResolverEntryPoint.Params(navTarget.roomAlias)
|
val params = RoomAliasResolverEntryPoint.Params(navTarget.roomAlias)
|
||||||
|
|||||||
Reference in New Issue
Block a user