This commit is contained in:
Sorunome 2020-07-24 15:37:00 +02:00
parent ff2de35d28
commit 9cb4dab9d4
No known key found for this signature in database
GPG Key ID: B19471D07FC9BE9C
1 changed files with 3 additions and 4 deletions

View File

@ -41,10 +41,9 @@ class MatrixEvent extends StrippedStateEvent {
unsigned = json['unsigned'] != null
? Map<String, dynamic>.from(json['unsigned'])
: null;
prevContent =
json.containsKey('prev_content') && json['prev_content'] != null
? Map<String, dynamic>.from(json['prev_content'])
: null;
prevContent = json['prev_content'] != null
? Map<String, dynamic>.from(json['prev_content'])
: null;
redacts = json['redacts'];
}