about summary refs log tree commit diff
path: root/LibMatrix/RoomTypes
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2026-01-07 23:00:06 +0100
committerRory& <root@rory.gay>2026-01-07 23:00:06 +0100
commit31e7fea3beb0f78914bc4f81bea63fa1a0bfdcfe (patch)
tree777b8e4980c91998d11e4b7467b808d2fbbe0815 /LibMatrix/RoomTypes
parentAdd thumbnail info and duration for the various file types (diff)
downloadLibMatrix-31e7fea3beb0f78914bc4f81bea63fa1a0bfdcfe.tar.xz
Fix invite bug, fix room creation and upgrades
Diffstat (limited to 'LibMatrix/RoomTypes')
-rw-r--r--LibMatrix/RoomTypes/GenericRoom.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/LibMatrix/RoomTypes/GenericRoom.cs b/LibMatrix/RoomTypes/GenericRoom.cs

index 6d9a499..6a0b003 100644 --- a/LibMatrix/RoomTypes/GenericRoom.cs +++ b/LibMatrix/RoomTypes/GenericRoom.cs
@@ -393,7 +393,7 @@ public class GenericRoom { new UserIdAndReason { UserId = userId, Reason = reason }); public async Task InviteUserAsync(string userId, string? reason = null, bool skipExisting = true) { - if (skipExisting && await GetStateOrNullAsync<RoomMemberEventContent>("m.room.member", userId) is not { Membership: "leave" or "ban" or "join" }) + if (skipExisting && await GetStateOrNullAsync<RoomMemberEventContent>("m.room.member", userId) is { Membership: "ban" or "join" }) return; await Homeserver.ClientHttpClient.PostAsJsonAsync($"/_matrix/client/v3/rooms/{RoomId}/invite", new UserIdAndReason(userId, reason)); }