Skip to content

Commit

Permalink
Adjust authedRequest usages after matrix-js-sdk was updated in 2d77ce8
Browse files Browse the repository at this point in the history
  • Loading branch information
fnwbr committed May 4, 2023
1 parent afe3c01 commit a874cbb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/auth/MatrixAuthProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class MatrixAuthProvider {
}

removeSpaceChild(parent, child) {
return this.matrixClient.http.authedRequest(undefined, 'PUT', `/rooms/${parent}/state/m.space.child/${child}`, undefined, {});
return this.matrixClient.http.authedRequest('PUT', `/rooms/${parent}/state/m.space.child/${child}`, undefined, {});
}

addSpaceChild(parent, child, autoJoin, suggested) {
Expand All @@ -80,11 +80,11 @@ class MatrixAuthProvider {
suggested: suggested || false,
via: [this.configuration.baseUrl.replace('https://', '')],
};
return this.matrixClient.http.authedRequest(undefined, 'PUT', `/rooms/${parent}/state/m.space.child/${child}`, undefined, payload);
return this.matrixClient.http.authedRequest('PUT', `/rooms/${parent}/state/m.space.child/${child}`, undefined, payload);
}

fetchRoomMessages(roomId, limit = 1, signal) {
return this.matrixClient.http.authedRequest(undefined, 'GET', `/rooms/${roomId}/messages`, { limit: limit, dir: 'b', filter: JSON.stringify({ types: ['m.room.message'] }) }, { signal });
fetchRoomMessages(roomId, limit = 1, abortSignal) {
return this.matrixClient.http.authedRequest('GET', `/rooms/${roomId}/messages`, { limit: limit, dir: 'b', filter: JSON.stringify({ types: ['m.room.message'] }) }, undefined, { abortSignal });
}

async createRoom(name, isSpace, topic, joinRule, type, template) {
Expand Down

0 comments on commit a874cbb

Please sign in to comment.