mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 19:45:05 +01:00
Implement context endpoint
This commit is contained in:
parent
e901142661
commit
0c42f53a2f
@ -128,8 +128,8 @@ export class HomeServerApi {
|
|||||||
return this._get("/sync", {since, timeout, filter}, undefined, options);
|
return this._get("/sync", {since, timeout, filter}, undefined, options);
|
||||||
}
|
}
|
||||||
|
|
||||||
event(roomId, eventId) {
|
context(roomId: string, eventId: string, limit: number, filter: string): IHomeServerRequest {
|
||||||
return this._get(`/rooms/${encodeURIComponent(roomId)}/event/${encodeURIComponent(eventId)}`);
|
return this._get(`/rooms/${encodeURIComponent(roomId)}/context/${encodeURIComponent(eventId)}`, {filter, limit});
|
||||||
}
|
}
|
||||||
|
|
||||||
// params is from, dir and optionally to, limit, filter.
|
// params is from, dir and optionally to, limit, filter.
|
||||||
|
Loading…
Reference in New Issue
Block a user