mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 11:35:04 +01:00
members hs api call
This commit is contained in:
parent
2ad9b17ad7
commit
a5595570f9
@ -126,6 +126,11 @@ export class HomeServerApi {
|
|||||||
return this._get(`/rooms/${encodeURIComponent(roomId)}/messages`, params, null, options);
|
return this._get(`/rooms/${encodeURIComponent(roomId)}/messages`, params, null, options);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// params is at, membership and not_membership
|
||||||
|
members(roomId, params, options = null) {
|
||||||
|
return this._get(`/rooms/${encodeURIComponent(roomId)}/members`, params, null, options);
|
||||||
|
}
|
||||||
|
|
||||||
send(roomId, eventType, txnId, content, options = null) {
|
send(roomId, eventType, txnId, content, options = null) {
|
||||||
return this._put(`/rooms/${encodeURIComponent(roomId)}/send/${encodeURIComponent(eventType)}/${encodeURIComponent(txnId)}`, {}, content, options);
|
return this._put(`/rooms/${encodeURIComponent(roomId)}/send/${encodeURIComponent(eventType)}/${encodeURIComponent(txnId)}`, {}, content, options);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user