fix invalid power level creation
oops, misread spec and now this breaks rooms on Synapse
This commit is contained in:
parent
2937c241e0
commit
68f7506669
1 changed files with 1 additions and 4 deletions
|
|
@ -26,10 +26,7 @@ sealed class PowerLevelsContent extends Content with _$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) =>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue