Implement context endpoint
This commit is contained in:
parent
65f957f023
commit
35a13842af
1 changed files with 2 additions and 2 deletions
|
@ -110,8 +110,8 @@ export class HomeServerApi {
|
|||
return this._get("/sync", {since, timeout, filter}, null, options);
|
||||
}
|
||||
|
||||
event(roomId, eventId) {
|
||||
return this._get(`/rooms/${encodeURIComponent(roomId)}/event/${encodeURIComponent(eventId)}`);
|
||||
context(roomId, eventId, limit, filter) {
|
||||
return this._get(`/rooms/${encodeURIComponent(roomId)}/context/${encodeURIComponent(eventId)}`, {filter, limit});
|
||||
}
|
||||
|
||||
// params is from, dir and optionally to, limit, filter.
|
||||
|
|
Reference in a new issue