Update lib/src/User.dart
This commit is contained in:
parent
60cf1ac7fe
commit
54feb4b6a9
|
@ -136,6 +136,13 @@ class User {
|
||||||
"preset": "trusted_private_chat"
|
"preset": "trusted_private_chat"
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if (resp is ErrorResponse) return null;
|
||||||
|
|
||||||
|
// TODO: Update m.direct data
|
||||||
|
/*room.client.connection.jsonRequest(type: "PUT", action: "/client/r0/user/${room.client.userID}/account_data/m.direct", data: {
|
||||||
|
|
||||||
|
});*/
|
||||||
|
|
||||||
return resp["room_id"];
|
return resp["room_id"];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue