Fix fromJson func

This commit is contained in:
Christian Pauly 2019-07-03 13:07:56 +02:00
parent a70b82e88d
commit f349193ef2

View file

@ -140,7 +140,7 @@ class Event {
} }
else if (content == null) content = {}; 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"]); if (stateKeyUser == null) stateKeyUser = User(jsonObj["state_key"]);
return Event( return Event(