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"]),