[DeviceKeys] outdated by default not null

This commit is contained in:
Christian Pauly 2020-02-15 14:21:27 +01:00
parent 1f5e3d3873
commit 8bf7eacc46
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ class DeviceKeysList {
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = Map<String, dynamic>();
data['user_id'] = this.userId;
data['outdated'] = this.outdated;
data['outdated'] = this.outdated ?? true;
Map<String, dynamic> rawDeviceKeys = {};
for (final deviceKeyEntry in this.deviceKeys.entries) {