Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change _unstable_getSharedRooms to _unstable_getMutualRooms #2271

Merged
merged 4 commits into from
Apr 12, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6408,11 +6408,11 @@ export class MatrixClient extends TypedEventEmitter<EmittedEvents, ClientEventHa
* @return {Promise<string[]>} Resolves to a set of rooms
* @return {module:http-api.MatrixError} Rejects: with an error response.
*/
public async _unstable_getSharedRooms(userId: string): Promise<string[]> { // eslint-disable-line
public async _unstable_getMutualRooms(userId: string): Promise<string[]> { // eslint-disable-line
ShadowJonathan marked this conversation as resolved.
Show resolved Hide resolved
if (!(await this.doesServerSupportUnstableFeature("uk.half-shot.msc2666"))) {
ShadowJonathan marked this conversation as resolved.
Show resolved Hide resolved
throw Error('Server does not support shared_rooms API');
throw Error('Server does not support mutual_rooms API');
}
const path = utils.encodeUri("/uk.half-shot.msc2666/user/shared_rooms/$userId", {
const path = utils.encodeUri("/uk.half-shot.msc2666/user/mutual_rooms/$userId", {
$userId: userId,
});
const res = await this.http.authedRequest<{ joined: string[] }>(
Expand Down