Fix fromJson func
This commit is contained in:
parent
a70b82e88d
commit
f349193ef2
|
@ -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(
|
||||||
|
|
Loading…
Reference in a new issue