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 a3ef4f8135
Signed by: Henry-Hiles
SSH key fingerprint: SHA256:VKQUdS31Q90KvX7EkKMHMBpUspcmItAh86a+v7PGiIs

View file

@ -24,10 +24,7 @@ class const PowerLevelsContent({
@Freezed(toJson: false, fromJson: false) @Freezed(toJson: false, fromJson: false)
@JsonSerializable() @JsonSerializable()
class const Notifications({ class const Notifications({final int room = 50}) with _$Notifications {
final int room = 50,
final IMap<String, int> other = const .empty(),
}) with _$Notifications {
Map<String, Object?> toJson() => _$NotificationsToJson(this); Map<String, Object?> toJson() => _$NotificationsToJson(this);
factory Notifications.fromJson(Map<String, Object?> json) => factory Notifications.fromJson(Map<String, Object?> json) =>