fix invalid power level creation
oops, misread spec and now this breaks rooms on Synapse
This commit is contained in:
parent
0a09a4ee0a
commit
a3ef4f8135
1 changed files with 1 additions and 4 deletions
|
|
@ -24,10 +24,7 @@ class const 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) =>
|
||||
|
|
|
|||
Loading…
Reference in a new issue