From 1feb7fb87444807c3fb5d266fa3cb76069c061a1 Mon Sep 17 00:00:00 2001 From: Rory& Date: Mon, 11 Aug 2025 15:12:27 +0200 Subject: Update dependencies, more support for room upgrades --- LibMatrix/RoomTypes/GenericRoom.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'LibMatrix/RoomTypes') diff --git a/LibMatrix/RoomTypes/GenericRoom.cs b/LibMatrix/RoomTypes/GenericRoom.cs index 7fc942e..7d21d68 100644 --- a/LibMatrix/RoomTypes/GenericRoom.cs +++ b/LibMatrix/RoomTypes/GenericRoom.cs @@ -656,7 +656,10 @@ public class GenericRoom { public SpaceRoom AsSpace() => new SpaceRoom(Homeserver, RoomId); public PolicyRoom AsPolicyRoom() => new PolicyRoom(Homeserver, RoomId); - private bool IsV12PlusRoomId => !RoomId.Contains(':'); + /// + /// Unsafe: does not actually check if the room is v12, it just checks the room ID format as an estimation. + /// + public bool IsV12PlusRoomId => !RoomId.Contains(':'); /// /// Gets the list of room creators for this room. -- cgit 1.5.1