1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-07-31 15:24:23 +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

@ -43,9 +43,9 @@ describe("Location", function () {
const modernEventContent = { ...modernProperties };
const legacyEventContent = {
// eslint-disable-next-line camelcase
body,
msgtype,
// eslint-disable-next-line camelcase
geo_uri,
} as LocationEventWireContent;

View File

@ -843,6 +843,7 @@ describe("Group Call", function () {
call.getOpponentMember = () => ({ userId: call.invitee } as RoomMember);
// @ts-ignore Mock
call.pushRemoteFeed(
// @ts-ignore Mock
new MockMediaStream("stream", [
new MockMediaStreamTrack("audio_track", "audio"),
new MockMediaStreamTrack("video_track", "video"),
@ -869,6 +870,7 @@ describe("Group Call", function () {
call.getOpponentMember = () => ({ userId: call.invitee } as RoomMember);
// @ts-ignore Mock
call.pushRemoteFeed(
// @ts-ignore Mock
new MockMediaStream("stream", [
new MockMediaStreamTrack("audio_track", "audio"),
new MockMediaStreamTrack("video_track", "video"),
@ -1054,6 +1056,7 @@ describe("Group Call", function () {
} as MatrixEvent);
// @ts-ignore Mock
call.pushRemoteFeed(
// @ts-ignore Mock
new MockMediaStream("screensharing_stream", [new MockMediaStreamTrack("video_track", "video")]),
);

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");

View File

@ -338,10 +338,10 @@ export type CryptoEventHandlerMap = {
failures: IUploadKeySignaturesResponse["failures"],
source: "checkOwnCrossSigningTrust" | "afterCrossSigningLocalKeyChange" | "setDeviceVerification",
upload: (opts: { shouldEmit: boolean }) => Promise<void>,
) => void
) => void;
/**
* Fires when a key verification is requested.
*/;
*/
[CryptoEvent.VerificationRequest]: (request: VerificationRequest<any>) => void;
/**
* Fires when the app may wish to warn the user about something related

View File

@ -207,7 +207,7 @@ export type RoomEventHandlerMap = {
* });
* ```
*/
[RoomEvent.Receipt]: (event: MatrixEvent, room: Room) => void
[RoomEvent.Receipt]: (event: MatrixEvent, room: Room) => void;
/**
* Fires whenever the name of a room is updated.
* @param room - The room whose Room.name was updated.
@ -217,7 +217,7 @@ export type RoomEventHandlerMap = {
* var newName = room.name;
* });
* ```
*/;
*/
[RoomEvent.Name]: (room: Room) => void;
/**
* Fires when an event we had previously received is redacted.