[Room] fix users generated by getUserByMXID

Took 9 minutes
This commit is contained in:
Marcel 2019-08-06 11:09:17 +02:00
parent d02ba91c4e
commit 8a2b7e8177

View file

@ -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);
}