diff options
author | TheArcaneBrony <myrainbowdash949@gmail.com> | 2023-10-11 16:13:48 +0200 |
---|---|---|
committer | TheArcaneBrony <myrainbowdash949@gmail.com> | 2023-10-11 16:13:48 +0200 |
commit | 84e33226690beb65f747526714ac9aa4cc8ee151 (patch) | |
tree | c91d66082d515f43d9e09c5609a4376a3d65b701 /LibMatrix | |
parent | Added options to skip inviting already invited/joined/left users, added optio... (diff) | |
download | LibMatrix-84e33226690beb65f747526714ac9aa4cc8ee151.tar.xz |
Fix alias thing?
Diffstat (limited to 'LibMatrix')
-rw-r--r-- | LibMatrix/Homeservers/AuthenticatedHomeserverGeneric.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/LibMatrix/Homeservers/AuthenticatedHomeserverGeneric.cs b/LibMatrix/Homeservers/AuthenticatedHomeserverGeneric.cs index 1da34d5..8a6e114 100644 --- a/LibMatrix/Homeservers/AuthenticatedHomeserverGeneric.cs +++ b/LibMatrix/Homeservers/AuthenticatedHomeserverGeneric.cs @@ -82,7 +82,7 @@ public class AuthenticatedHomeserverGeneric(string baseUrl, string accessToken) bool inviteIfAliasExists = false) { if (returnExistingIfAliasExists) { var aliasRes = await ResolveRoomAliasAsync($"#{creationEvent.RoomAliasName}:{ServerName}"); - if (aliasRes is not null) { + if (aliasRes?.RoomId != null) { var existingRoom = GetRoom(aliasRes.RoomId); if (joinIfAliasExists) { await existingRoom.JoinAsync(); |