From 9cb4dab9d41756b81e63ef0e8e484bb3ce609479 Mon Sep 17 00:00:00 2001 From: Sorunome Date: Fri, 24 Jul 2020 15:37:00 +0200 Subject: [PATCH] test web --- lib/matrix_api/model/matrix_event.dart | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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']; }