fix invalid power level creation

oops, misread spec and now this breaks rooms on Synapse
This commit is contained in:
Henry Hiles 2026-10-25 17:04:21 -04:00
commit 68f7506669
Signed by: Henry-Hiles
SSH key fingerprint: SHA256:VKQUdS31Q90KvX7EkKMHMBpUspcmItAh86a+v7PGiIs

View file

@ -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<String, int> other = const .empty(),
}) with _$Notifications {
class const Notifications({final int room = 50}) with _$Notifications {
Map<String, Object?> toJson() => _$NotificationsToJson(this);
factory Notifications.fromJson(Map<String, Object?> json) =>