about summary refs log tree commit diff
diff options
context:
space:
mode:
authorTheArcaneBrony <myrainbowdash949@gmail.com>2023-10-11 16:13:48 +0200
committerTheArcaneBrony <myrainbowdash949@gmail.com>2023-10-11 16:13:48 +0200
commit84e33226690beb65f747526714ac9aa4cc8ee151 (patch)
treec91d66082d515f43d9e09c5609a4376a3d65b701
parentAdded options to skip inviting already invited/joined/left users, added optio... (diff)
downloadLibMatrix-84e33226690beb65f747526714ac9aa4cc8ee151.tar.xz
Fix alias thing?
Diffstat (limited to '')
-rw-r--r--LibMatrix/Homeservers/AuthenticatedHomeserverGeneric.cs2
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();