You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-08-06 12:02:40 +03:00
Apply manual code style fixes after prettier
This commit is contained in:
@@ -43,9 +43,9 @@ describe("Location", function () {
|
|||||||
const modernEventContent = { ...modernProperties };
|
const modernEventContent = { ...modernProperties };
|
||||||
|
|
||||||
const legacyEventContent = {
|
const legacyEventContent = {
|
||||||
// eslint-disable-next-line camelcase
|
|
||||||
body,
|
body,
|
||||||
msgtype,
|
msgtype,
|
||||||
|
// eslint-disable-next-line camelcase
|
||||||
geo_uri,
|
geo_uri,
|
||||||
} as LocationEventWireContent;
|
} as LocationEventWireContent;
|
||||||
|
|
||||||
|
@@ -843,6 +843,7 @@ describe("Group Call", function () {
|
|||||||
call.getOpponentMember = () => ({ userId: call.invitee } as RoomMember);
|
call.getOpponentMember = () => ({ userId: call.invitee } as RoomMember);
|
||||||
// @ts-ignore Mock
|
// @ts-ignore Mock
|
||||||
call.pushRemoteFeed(
|
call.pushRemoteFeed(
|
||||||
|
// @ts-ignore Mock
|
||||||
new MockMediaStream("stream", [
|
new MockMediaStream("stream", [
|
||||||
new MockMediaStreamTrack("audio_track", "audio"),
|
new MockMediaStreamTrack("audio_track", "audio"),
|
||||||
new MockMediaStreamTrack("video_track", "video"),
|
new MockMediaStreamTrack("video_track", "video"),
|
||||||
@@ -869,6 +870,7 @@ describe("Group Call", function () {
|
|||||||
call.getOpponentMember = () => ({ userId: call.invitee } as RoomMember);
|
call.getOpponentMember = () => ({ userId: call.invitee } as RoomMember);
|
||||||
// @ts-ignore Mock
|
// @ts-ignore Mock
|
||||||
call.pushRemoteFeed(
|
call.pushRemoteFeed(
|
||||||
|
// @ts-ignore Mock
|
||||||
new MockMediaStream("stream", [
|
new MockMediaStream("stream", [
|
||||||
new MockMediaStreamTrack("audio_track", "audio"),
|
new MockMediaStreamTrack("audio_track", "audio"),
|
||||||
new MockMediaStreamTrack("video_track", "video"),
|
new MockMediaStreamTrack("video_track", "video"),
|
||||||
@@ -1054,6 +1056,7 @@ describe("Group Call", function () {
|
|||||||
} as MatrixEvent);
|
} as MatrixEvent);
|
||||||
// @ts-ignore Mock
|
// @ts-ignore Mock
|
||||||
call.pushRemoteFeed(
|
call.pushRemoteFeed(
|
||||||
|
// @ts-ignore Mock
|
||||||
new MockMediaStream("screensharing_stream", [new MockMediaStreamTrack("video_track", "video")]),
|
new MockMediaStream("screensharing_stream", [new MockMediaStreamTrack("video_track", "video")]),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@@ -2837,8 +2837,9 @@ export class MatrixClient extends TypedEventEmitter<EmittedEvents, ClientEventHa
|
|||||||
algorithm: wireContent.algorithm,
|
algorithm: wireContent.algorithm,
|
||||||
room_id: event.getRoomId()!,
|
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 Promise.resolve(null);
|
||||||
|
}
|
||||||
return this.crypto.cryptoStore.getOutgoingRoomKeyRequest(requestBody);
|
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 Promise which resolves to a set of rooms
|
||||||
* @returns Rejects: with an error response.
|
* @returns Rejects: with an error response.
|
||||||
*/
|
*/
|
||||||
|
// eslint-disable-next-line
|
||||||
public async _unstable_getSharedRooms(userId: string): Promise<string[]> {
|
public async _unstable_getSharedRooms(userId: string): Promise<string[]> {
|
||||||
// eslint-disable-line
|
|
||||||
const sharedRoomsSupport = await this.doesServerSupportUnstableFeature("uk.half-shot.msc2666");
|
const sharedRoomsSupport = await this.doesServerSupportUnstableFeature("uk.half-shot.msc2666");
|
||||||
const mutualRoomsSupport = await this.doesServerSupportUnstableFeature("uk.half-shot.msc2666.mutual_rooms");
|
const mutualRoomsSupport = await this.doesServerSupportUnstableFeature("uk.half-shot.msc2666.mutual_rooms");
|
||||||
|
|
||||||
|
@@ -338,10 +338,10 @@ export type CryptoEventHandlerMap = {
|
|||||||
failures: IUploadKeySignaturesResponse["failures"],
|
failures: IUploadKeySignaturesResponse["failures"],
|
||||||
source: "checkOwnCrossSigningTrust" | "afterCrossSigningLocalKeyChange" | "setDeviceVerification",
|
source: "checkOwnCrossSigningTrust" | "afterCrossSigningLocalKeyChange" | "setDeviceVerification",
|
||||||
upload: (opts: { shouldEmit: boolean }) => Promise<void>,
|
upload: (opts: { shouldEmit: boolean }) => Promise<void>,
|
||||||
) => void
|
) => void;
|
||||||
/**
|
/**
|
||||||
* Fires when a key verification is requested.
|
* Fires when a key verification is requested.
|
||||||
*/;
|
*/
|
||||||
[CryptoEvent.VerificationRequest]: (request: VerificationRequest<any>) => void;
|
[CryptoEvent.VerificationRequest]: (request: VerificationRequest<any>) => void;
|
||||||
/**
|
/**
|
||||||
* Fires when the app may wish to warn the user about something related
|
* Fires when the app may wish to warn the user about something related
|
||||||
|
@@ -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.
|
* Fires whenever the name of a room is updated.
|
||||||
* @param room - The room whose Room.name was updated.
|
* @param room - The room whose Room.name was updated.
|
||||||
@@ -217,7 +217,7 @@ export type RoomEventHandlerMap = {
|
|||||||
* var newName = room.name;
|
* var newName = room.name;
|
||||||
* });
|
* });
|
||||||
* ```
|
* ```
|
||||||
*/;
|
*/
|
||||||
[RoomEvent.Name]: (room: Room) => void;
|
[RoomEvent.Name]: (room: Room) => void;
|
||||||
/**
|
/**
|
||||||
* Fires when an event we had previously received is redacted.
|
* Fires when an event we had previously received is redacted.
|
||||||
|
Reference in New Issue
Block a user