From c432cc845571020050f70431ecca4bf6f4f281ec Mon Sep 17 00:00:00 2001 From: Christian Pauly Date: Thu, 27 Jun 2019 10:15:46 +0200 Subject: [PATCH] Use both ID keys for events --- 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 1989a85..7190917 100644 --- a/lib/src/Event.dart +++ b/lib/src/Event.dart @@ -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"]),