You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-11-23 17:02:25 +03:00
Fix semicolons in TS files
This updates the linting config to include the semi fix in https://github.com/matrix-org/eslint-plugin-matrix-org/pull/8. The various semi errors have been auto-fixed.
This commit is contained in:
@@ -104,7 +104,7 @@ describe("Relations", function() {
|
||||
{
|
||||
const relationsCreated = new Promise(resolve => {
|
||||
targetEvent.once("Event.relationsCreated", resolve);
|
||||
})
|
||||
});
|
||||
|
||||
const timelineSet = new EventTimelineSet(room, {
|
||||
unstableClientRelationAggregation: true,
|
||||
@@ -119,7 +119,7 @@ describe("Relations", function() {
|
||||
{
|
||||
const relationsCreated = new Promise(resolve => {
|
||||
targetEvent.once("Event.relationsCreated", resolve);
|
||||
})
|
||||
});
|
||||
|
||||
const timelineSet = new EventTimelineSet(room, {
|
||||
unstableClientRelationAggregation: true,
|
||||
|
||||
@@ -441,7 +441,7 @@ export class MatrixCall extends EventEmitter {
|
||||
* @returns {Array<CallFeed>} local CallFeeds
|
||||
*/
|
||||
public getLocalFeeds(): Array<CallFeed> {
|
||||
return this.feeds.filter((feed) => {return feed.isLocal()});
|
||||
return this.feeds.filter((feed) => {return feed.isLocal();});
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -449,7 +449,7 @@ export class MatrixCall extends EventEmitter {
|
||||
* @returns {Array<CallFeed>} remote CallFeeds
|
||||
*/
|
||||
public getRemoteFeeds(): Array<CallFeed> {
|
||||
return this.feeds.filter((feed) => {return !feed.isLocal()});
|
||||
return this.feeds.filter((feed) => {return !feed.isLocal();});
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -530,7 +530,7 @@ export class MatrixCall extends EventEmitter {
|
||||
return;
|
||||
}
|
||||
|
||||
const remoteStream = this.feeds.find((feed) => {return !feed.isLocal()})?.stream;
|
||||
const remoteStream = this.feeds.find((feed) => {return !feed.isLocal();})?.stream;
|
||||
|
||||
// According to previous comments in this file, firefox at some point did not
|
||||
// add streams until media started ariving on them. Testing latest firefox
|
||||
@@ -598,7 +598,7 @@ export class MatrixCall extends EventEmitter {
|
||||
this.gotUserMediaForAnswer(mediaStream);
|
||||
} catch (e) {
|
||||
this.getUserMediaFailed(e);
|
||||
return
|
||||
return;
|
||||
}
|
||||
} else if (this.localAVStream) {
|
||||
this.gotUserMediaForAnswer(this.localAVStream);
|
||||
@@ -849,7 +849,7 @@ export class MatrixCall extends EventEmitter {
|
||||
if (this.client._supportsCallTransfer) {
|
||||
answerContent.capabilities = {
|
||||
'm.call.transferee': true,
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
// We have just taken the local description from the peerconnection which will
|
||||
@@ -1169,7 +1169,7 @@ export class MatrixCall extends EventEmitter {
|
||||
} catch (err) {
|
||||
logger.debug("Error setting local description!", err);
|
||||
this.terminate(CallParty.Local, CallErrorCode.SetLocalDescription, true);
|
||||
return
|
||||
return;
|
||||
}
|
||||
|
||||
if (this.peerConn.iceGatheringState === 'gathering') {
|
||||
@@ -1197,7 +1197,7 @@ export class MatrixCall extends EventEmitter {
|
||||
if (this.client._supportsCallTransfer) {
|
||||
content.capabilities = {
|
||||
'm.call.transferee': true,
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
// Get rid of any candidates waiting to be sent: they'll be included in the local
|
||||
@@ -1304,7 +1304,7 @@ export class MatrixCall extends EventEmitter {
|
||||
return;
|
||||
}
|
||||
|
||||
const oldRemoteStream = this.feeds.find((feed) => {return !feed.isLocal()})?.stream;
|
||||
const oldRemoteStream = this.feeds.find((feed) => {return !feed.isLocal();})?.stream;
|
||||
|
||||
// If we already have a stream, check this track is from the same one
|
||||
// Note that we check by ID and always set the remote stream: Chrome appears
|
||||
@@ -1325,7 +1325,7 @@ export class MatrixCall extends EventEmitter {
|
||||
|
||||
logger.debug(`Track id ${ev.track.id} of kind ${ev.track.kind} added`);
|
||||
|
||||
this.pushNewFeed(newRemoteStream, this.getOpponentMember().userId, SDPStreamMetadataPurpose.Usermedia)
|
||||
this.pushNewFeed(newRemoteStream, this.getOpponentMember().userId, SDPStreamMetadataPurpose.Usermedia);
|
||||
|
||||
logger.info("playing remote. stream active? " + newRemoteStream.active);
|
||||
};
|
||||
|
||||
@@ -87,7 +87,7 @@ export class CallEventHandler {
|
||||
}
|
||||
this.callEventBuffer = [];
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
private onEvent = (event: MatrixEvent) => {
|
||||
this.client.decryptEventIfNeeded(event);
|
||||
@@ -117,7 +117,7 @@ export class CallEventHandler {
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
private eventIsACall(event: MatrixEvent): boolean {
|
||||
const type = event.getType();
|
||||
|
||||
@@ -16,7 +16,7 @@ limitations under the License.
|
||||
|
||||
import EventEmitter from "events";
|
||||
import { SDPStreamMetadataPurpose } from "./callEventTypes";
|
||||
import MatrixClient from "../client"
|
||||
import MatrixClient from "../client";
|
||||
import { RoomMember } from "../models/room-member";
|
||||
|
||||
export enum CallFeedEvent {
|
||||
@@ -31,7 +31,7 @@ export class CallFeed extends EventEmitter {
|
||||
private client: MatrixClient,
|
||||
private roomId: string,
|
||||
) {
|
||||
super()
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -2845,8 +2845,8 @@ eslint-config-google@^0.14.0:
|
||||
integrity sha512-WsbX4WbjuMvTdeVL6+J3rK1RGhCTqjsFjX7UMSMgZiyxxaNLkoJENbrGExzERFeoTpGw3F3FypTiWAP9ZXzkEw==
|
||||
|
||||
"eslint-plugin-matrix-org@github:matrix-org/eslint-plugin-matrix-org#main":
|
||||
version "0.3.1"
|
||||
resolved "https://codeload.github.com/matrix-org/eslint-plugin-matrix-org/tar.gz/b55649a0f48ee27155c1968ed5050b6ddc5afdbe"
|
||||
version "0.3.2"
|
||||
resolved "https://codeload.github.com/matrix-org/eslint-plugin-matrix-org/tar.gz/28d392822533a7468be0dd806d0a4ba573a45d74"
|
||||
|
||||
eslint-rule-composer@^0.3.0:
|
||||
version "0.3.0"
|
||||
|
||||
Reference in New Issue
Block a user