diff --git a/src/matrix/net/HomeServerApi.ts b/src/matrix/net/HomeServerApi.ts index c37e49fc..a4cea6dd 100644 --- a/src/matrix/net/HomeServerApi.ts +++ b/src/matrix/net/HomeServerApi.ts @@ -378,6 +378,24 @@ export class HomeServerApi { return this._put(`/user/${encodeURIComponent(ownUserId)}/account_data/${encodeURIComponent(type)}`, {}, content, options); } + roomAccountData(ownUserId: string, roomId: string, type: string, options?: BaseRequestOptions): IHomeServerRequest { + return this._get( + `/user/${encodeURIComponent(ownUserId)}/rooms/${encodeURIComponent(roomId)}/account_data/${encodeURIComponent(type)}`, + undefined, + undefined, + options + ); + } + + setRoomAccountData(ownUserId: string, roomId: string, type: string, content: Record, options?: BaseRequestOptions): IHomeServerRequest { + return this._put( + `/user/${encodeURIComponent(ownUserId)}/rooms/${encodeURIComponent(roomId)}/account_data/${encodeURIComponent(type)}`, + {}, + content, + options + ); + } + getTurnServer(options?: BaseRequestOptions): IHomeServerRequest { return this._get(`/voip/turnServer`, undefined, undefined, options); }