1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-12-04 05:02:41 +03:00

Apply manual code style fixes after prettier

This commit is contained in:
Michael Weimann
2022-12-09 09:39:03 +01:00
parent 349c2c2587
commit 72dac9a107
5 changed files with 11 additions and 7 deletions

View File

@@ -2837,8 +2837,9 @@ export class MatrixClient extends TypedEventEmitter<EmittedEvents, ClientEventHa
algorithm: wireContent.algorithm,
room_id: event.getRoomId()!,
};
if (!requestBody.session_id || !requestBody.sender_key || !requestBody.algorithm || !requestBody.room_id)
if (!requestBody.session_id || !requestBody.sender_key || !requestBody.algorithm || !requestBody.room_id) {
return Promise.resolve(null);
}
return this.crypto.cryptoStore.getOutgoingRoomKeyRequest(requestBody);
}
@@ -6837,8 +6838,8 @@ export class MatrixClient extends TypedEventEmitter<EmittedEvents, ClientEventHa
* @returns Promise which resolves to a set of rooms
* @returns Rejects: with an error response.
*/
// eslint-disable-next-line
public async _unstable_getSharedRooms(userId: string): Promise<string[]> {
// eslint-disable-line
const sharedRoomsSupport = await this.doesServerSupportUnstableFeature("uk.half-shot.msc2666");
const mutualRoomsSupport = await this.doesServerSupportUnstableFeature("uk.half-shot.msc2666.mutual_rooms");