You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-11-26 17:03:12 +03:00
basic support for /relations endpoint
This commit is contained in:
@@ -3965,6 +3965,12 @@ MatrixClient.prototype.getCanResetTimelineCallback = function() {
|
||||
return this._canResetTimelineCallback;
|
||||
};
|
||||
|
||||
MatrixClient.prototype.relations =
|
||||
async function(roomId, eventId, relationType, eventType) {
|
||||
const events = await this.fetchRelations(roomId, eventId, relationType, eventType);
|
||||
return events.map(this.getEventMapper());
|
||||
};
|
||||
|
||||
function setupCallEventHandler(client) {
|
||||
const candidatesByCall = {
|
||||
// callId: [Candidate]
|
||||
|
||||
Reference in New Issue
Block a user