From 8a2b7e8177c66963a43708ba7d90ee55c18c5634 Mon Sep 17 00:00:00 2001 From: Marcel Date: Tue, 6 Aug 2019 11:09:17 +0200 Subject: [PATCH] [Room] fix users generated by getUserByMXID Took 9 minutes --- lib/src/Room.dart | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/src/Room.dart b/lib/src/Room.dart index 45edd10..a43d3f6 100644 --- a/lib/src/Room.dart +++ b/lib/src/Room.dart @@ -503,6 +503,8 @@ class Room { type: HTTPType.GET, action: "/client/r0/rooms/$id/state/m.room.member/$mxID"); if (resp is ErrorResponse) return null; + // Somehow we miss the mxid in the response and only get the content of the event. + resp["matrix_id"] = mxID; return User.fromJson(resp, this); }