about summary refs log tree commit diff
path: root/LibMatrix/Helpers/RoomBuilder.cs
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2025-07-31 13:31:09 +0200
committerRory& <root@rory.gay>2025-07-31 13:31:09 +0200
commit28bb80630148b92144172ce1c9a508befb1e32f0 (patch)
tree7cd17f47f9db1ac43709390013690e570bd29438 /LibMatrix/Helpers/RoomBuilder.cs
parentDiscard empty creators in additional creators (diff)
downloadLibMatrix-28bb80630148b92144172ce1c9a508befb1e32f0.tar.xz
Dont set own powerlevel on room creation
Diffstat (limited to 'LibMatrix/Helpers/RoomBuilder.cs')
-rw-r--r--LibMatrix/Helpers/RoomBuilder.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/LibMatrix/Helpers/RoomBuilder.cs b/LibMatrix/Helpers/RoomBuilder.cs

index cbb32c5..ae01d11 100644 --- a/LibMatrix/Helpers/RoomBuilder.cs +++ b/LibMatrix/Helpers/RoomBuilder.cs
@@ -182,7 +182,8 @@ public class RoomBuilder { } private async Task SetAccessAsync(GenericRoom room) { - PowerLevels.Users![room.Homeserver.WhoAmI.UserId] = OwnPowerLevel; + if(!V12PlusRoomVersions.Contains(Version)) + PowerLevels.Users![room.Homeserver.WhoAmI.UserId] = OwnPowerLevel; await room.SendStateEventAsync(RoomPowerLevelEventContent.EventId, PowerLevels); if (!string.IsNullOrWhiteSpace(HistoryVisibility.HistoryVisibility))