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:
parent
1a9f6da1bc
commit
44035905fc
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue