about summary refs log tree commit diff
diff options
context:
space:
mode:
-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))