From 68f75066698f2ecade5164225d2f3ddbe5c4bd5a Mon Sep 17 00:00:00 2001 From: Henry-Hiles Date: Sun, 25 Oct 2026 17:04:21 -0400 Subject: [PATCH] fix invalid power level creation oops, misread spec and now this breaks rooms on Synapse --- lib/models/content/power_levels.dart | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/models/content/power_levels.dart b/lib/models/content/power_levels.dart index afa0e23..4eb1c82 100644 --- a/lib/models/content/power_levels.dart +++ b/lib/models/content/power_levels.dart @@ -26,10 +26,7 @@ sealed class PowerLevelsContent extends Content with _$PowerLevelsContent { @Freezed(toJson: false, fromJson: false) @JsonSerializable() -class const Notifications({ - final int room = 50, - final IMap other = const .empty(), -}) with _$Notifications { +class const Notifications({final int room = 50}) with _$Notifications { Map toJson() => _$NotificationsToJson(this); factory Notifications.fromJson(Map json) =>