From 31e7fea3beb0f78914bc4f81bea63fa1a0bfdcfe Mon Sep 17 00:00:00 2001 From: Rory& Date: Wed, 7 Jan 2026 23:00:06 +0100 Subject: Fix invite bug, fix room creation and upgrades --- LibMatrix/RoomTypes/GenericRoom.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'LibMatrix/RoomTypes') 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("m.room.member", userId) is not { Membership: "leave" or "ban" or "join" }) + if (skipExisting && await GetStateOrNullAsync("m.room.member", userId) is { Membership: "ban" or "join" }) return; await Homeserver.ClientHttpClient.PostAsJsonAsync($"/_matrix/client/v3/rooms/{RoomId}/invite", new UserIdAndReason(userId, reason)); } -- cgit 1.5.1