diff --git a/lib/matrix_api/model/matrix_event.dart b/lib/matrix_api/model/matrix_event.dart index 0a20bf5..e70f8b5 100644 --- a/lib/matrix_api/model/matrix_event.dart +++ b/lib/matrix_api/model/matrix_event.dart @@ -41,10 +41,9 @@ class MatrixEvent extends StrippedStateEvent { unsigned = json['unsigned'] != null ? Map.from(json['unsigned']) : null; - prevContent = - json.containsKey('prev_content') && json['prev_content'] != null - ? Map.from(json['prev_content']) - : null; + prevContent = json['prev_content'] != null + ? Map.from(json['prev_content']) + : null; redacts = json['redacts']; }