From f349193ef229742057e29a580c5baf393ba85a12 Mon Sep 17 00:00:00 2001 From: Christian Pauly Date: Wed, 3 Jul 2019 13:07:56 +0200 Subject: [PATCH] Fix fromJson func --- lib/src/Event.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/Event.dart b/lib/src/Event.dart index 114c5aa..cbf7b6b 100644 --- a/lib/src/Event.dart +++ b/lib/src/Event.dart @@ -140,7 +140,7 @@ class Event { } else if (content == null) content = {}; - if (senderUser == null) senderUser = User(jsonObj["sender"]); + if (senderUser == null) senderUser = User.fromJson(jsonObj, room); if (stateKeyUser == null) stateKeyUser = User(jsonObj["state_key"]); return Event(