Use both ID keys for events
This commit is contained in:
parent
ddc7efdc53
commit
c432cc8455
|
@ -138,7 +138,7 @@ class Event {
|
||||||
}
|
}
|
||||||
|
|
||||||
return Event(
|
return Event(
|
||||||
jsonObj["event_id"],
|
jsonObj["event_id"] ?? jsonObj["id"],
|
||||||
User.fromJson(jsonObj, room),
|
User.fromJson(jsonObj, room),
|
||||||
ChatTime(jsonObj["origin_server_ts"]),
|
ChatTime(jsonObj["origin_server_ts"]),
|
||||||
stateKey: User(jsonObj["state_key"]),
|
stateKey: User(jsonObj["state_key"]),
|
||||||
|
|
Loading…
Reference in a new issue