mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2025-01-18 00:06:57 +01:00
Support state events
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
This commit is contained in:
parent
3aeb0c4d98
commit
6cfb4cfbe0
@ -130,6 +130,10 @@ export class HomeServerApi {
|
||||
{}, {}, options);
|
||||
}
|
||||
|
||||
state(roomId, eventType, stateKey, options = null) {
|
||||
return this._get(`/rooms/${encodeURIComponent(roomId)}/state/${encodeURIComponent(eventType)}/${encodeURIComponent(stateKey)}`, {}, null, options);
|
||||
}
|
||||
|
||||
passwordLogin(username, password, initialDeviceDisplayName, options = null) {
|
||||
return this._unauthedRequest("POST", this._url("/login"), null, {
|
||||
"type": "m.login.password",
|
||||
|
Loading…
x
Reference in New Issue
Block a user