about summary refs log tree commit diff
path: root/LibMatrix/RoomTypes/GenericRoom.cs
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2025-08-11 15:12:27 +0200
committerRory& <root@rory.gay>2025-08-11 15:12:27 +0200
commit1feb7fb87444807c3fb5d266fa3cb76069c061a1 (patch)
tree09b543de89834b895d6c45c52aa6d6df5b374e22 /LibMatrix/RoomTypes/GenericRoom.cs
parentHandle room upgrades (diff)
downloadLibMatrix-1feb7fb87444807c3fb5d266fa3cb76069c061a1.tar.xz
Update dependencies, more support for room upgrades
Diffstat (limited to 'LibMatrix/RoomTypes/GenericRoom.cs')
-rw-r--r--LibMatrix/RoomTypes/GenericRoom.cs5
1 files changed, 4 insertions, 1 deletions
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(':'); + /// <summary> + /// Unsafe: does not actually check if the room is v12, it just checks the room ID format as an estimation. + /// </summary> + public bool IsV12PlusRoomId => !RoomId.Contains(':'); /// <summary> /// Gets the list of room creators for this room.