Merge branch 'notification-hotfix-sender-missing-mxid' into 'master'

[Room] fix users generated by getUserByMXID

See merge request famedly/famedlysdk!65
This commit is contained in:
Christian 2019-08-06 09:13:57 +00:00
commit d2c4f7c6ed

View file

@ -503,6 +503,8 @@ class Room {
type: HTTPType.GET, type: HTTPType.GET,
action: "/client/r0/rooms/$id/state/m.room.member/$mxID"); action: "/client/r0/rooms/$id/state/m.room.member/$mxID");
if (resp is ErrorResponse) return null; 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); return User.fromJson(resp, this);
} }