Use both ID keys for events

This commit is contained in:
Christian Pauly 2019-06-27 10:15:46 +02:00
parent ddc7efdc53
commit c432cc8455

View file

@ -138,7 +138,7 @@ class Event {
}
return Event(
jsonObj["event_id"],
jsonObj["event_id"] ?? jsonObj["id"],
User.fromJson(jsonObj, room),
ChatTime(jsonObj["origin_server_ts"]),
stateKey: User(jsonObj["state_key"]),