fix: Join room by alias even if not found
This commit is contained in:
parent
7ec4c6f34e
commit
58351535ae
1 changed files with 5 additions and 5 deletions
|
|
@ -154,12 +154,12 @@ class UrlLauncher {
|
||||||
context: context,
|
context: context,
|
||||||
future: () => matrix.client.getRoomIdByAlias(roomIdOrAlias),
|
future: () => matrix.client.getRoomIdByAlias(roomIdOrAlias),
|
||||||
);
|
);
|
||||||
if (response.error != null) {
|
final result = response.result;
|
||||||
return; // nothing to do, the alias doesn't exist
|
if (result != null) {
|
||||||
|
roomId = result.roomId;
|
||||||
|
servers.addAll(result.servers!);
|
||||||
|
room = matrix.client.getRoomById(roomId!);
|
||||||
}
|
}
|
||||||
roomId = response.result!.roomId;
|
|
||||||
servers.addAll(response.result!.servers!);
|
|
||||||
room = matrix.client.getRoomById(roomId!);
|
|
||||||
}
|
}
|
||||||
servers.addAll(identityParts.via);
|
servers.addAll(identityParts.via);
|
||||||
if (room != null) {
|
if (room != null) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue