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 => {
|
const relationsCreated = new Promise(resolve => {
|
||||||
targetEvent.once("Event.relationsCreated", resolve);
|
targetEvent.once("Event.relationsCreated", resolve);
|
||||||
})
|
});
|
||||||
|
|
||||||
const timelineSet = new EventTimelineSet(room, {
|
const timelineSet = new EventTimelineSet(room, {
|
||||||
unstableClientRelationAggregation: true,
|
unstableClientRelationAggregation: true,
|
||||||
@@ -119,7 +119,7 @@ describe("Relations", function() {
|
|||||||
{
|
{
|
||||||
const relationsCreated = new Promise(resolve => {
|
const relationsCreated = new Promise(resolve => {
|
||||||
targetEvent.once("Event.relationsCreated", resolve);
|
targetEvent.once("Event.relationsCreated", resolve);
|
||||||
})
|
});
|
||||||
|
|
||||||
const timelineSet = new EventTimelineSet(room, {
|
const timelineSet = new EventTimelineSet(room, {
|
||||||
unstableClientRelationAggregation: true,
|
unstableClientRelationAggregation: true,
|
||||||
|
|||||||
@@ -441,7 +441,7 @@ export class MatrixCall extends EventEmitter {
|
|||||||
* @returns {Array<CallFeed>} local CallFeeds
|
* @returns {Array<CallFeed>} local CallFeeds
|
||||||
*/
|
*/
|
||||||
public getLocalFeeds(): Array<CallFeed> {
|
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
|
* @returns {Array<CallFeed>} remote CallFeeds
|
||||||
*/
|
*/
|
||||||
public getRemoteFeeds(): Array<CallFeed> {
|
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;
|
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
|
// According to previous comments in this file, firefox at some point did not
|
||||||
// add streams until media started ariving on them. Testing latest firefox
|
// add streams until media started ariving on them. Testing latest firefox
|
||||||
@@ -598,7 +598,7 @@ export class MatrixCall extends EventEmitter {
|
|||||||
this.gotUserMediaForAnswer(mediaStream);
|
this.gotUserMediaForAnswer(mediaStream);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
this.getUserMediaFailed(e);
|
this.getUserMediaFailed(e);
|
||||||
return
|
return;
|
||||||
}
|
}
|
||||||
} else if (this.localAVStream) {
|
} else if (this.localAVStream) {
|
||||||
this.gotUserMediaForAnswer(this.localAVStream);
|
this.gotUserMediaForAnswer(this.localAVStream);
|
||||||
@@ -849,7 +849,7 @@ export class MatrixCall extends EventEmitter {
|
|||||||
if (this.client._supportsCallTransfer) {
|
if (this.client._supportsCallTransfer) {
|
||||||
answerContent.capabilities = {
|
answerContent.capabilities = {
|
||||||
'm.call.transferee': true,
|
'm.call.transferee': true,
|
||||||
}
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
// We have just taken the local description from the peerconnection which will
|
// We have just taken the local description from the peerconnection which will
|
||||||
@@ -1169,7 +1169,7 @@ export class MatrixCall extends EventEmitter {
|
|||||||
} catch (err) {
|
} catch (err) {
|
||||||
logger.debug("Error setting local description!", err);
|
logger.debug("Error setting local description!", err);
|
||||||
this.terminate(CallParty.Local, CallErrorCode.SetLocalDescription, true);
|
this.terminate(CallParty.Local, CallErrorCode.SetLocalDescription, true);
|
||||||
return
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.peerConn.iceGatheringState === 'gathering') {
|
if (this.peerConn.iceGatheringState === 'gathering') {
|
||||||
@@ -1197,7 +1197,7 @@ export class MatrixCall extends EventEmitter {
|
|||||||
if (this.client._supportsCallTransfer) {
|
if (this.client._supportsCallTransfer) {
|
||||||
content.capabilities = {
|
content.capabilities = {
|
||||||
'm.call.transferee': true,
|
'm.call.transferee': true,
|
||||||
}
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get rid of any candidates waiting to be sent: they'll be included in the local
|
// 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;
|
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
|
// 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
|
// 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`);
|
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);
|
logger.info("playing remote. stream active? " + newRemoteStream.active);
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -87,7 +87,7 @@ export class CallEventHandler {
|
|||||||
}
|
}
|
||||||
this.callEventBuffer = [];
|
this.callEventBuffer = [];
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
|
|
||||||
private onEvent = (event: MatrixEvent) => {
|
private onEvent = (event: MatrixEvent) => {
|
||||||
this.client.decryptEventIfNeeded(event);
|
this.client.decryptEventIfNeeded(event);
|
||||||
@@ -117,7 +117,7 @@ export class CallEventHandler {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
|
|
||||||
private eventIsACall(event: MatrixEvent): boolean {
|
private eventIsACall(event: MatrixEvent): boolean {
|
||||||
const type = event.getType();
|
const type = event.getType();
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ limitations under the License.
|
|||||||
|
|
||||||
import EventEmitter from "events";
|
import EventEmitter from "events";
|
||||||
import { SDPStreamMetadataPurpose } from "./callEventTypes";
|
import { SDPStreamMetadataPurpose } from "./callEventTypes";
|
||||||
import MatrixClient from "../client"
|
import MatrixClient from "../client";
|
||||||
import { RoomMember } from "../models/room-member";
|
import { RoomMember } from "../models/room-member";
|
||||||
|
|
||||||
export enum CallFeedEvent {
|
export enum CallFeedEvent {
|
||||||
@@ -31,7 +31,7 @@ export class CallFeed extends EventEmitter {
|
|||||||
private client: MatrixClient,
|
private client: MatrixClient,
|
||||||
private roomId: string,
|
private roomId: string,
|
||||||
) {
|
) {
|
||||||
super()
|
super();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -2845,8 +2845,8 @@ eslint-config-google@^0.14.0:
|
|||||||
integrity sha512-WsbX4WbjuMvTdeVL6+J3rK1RGhCTqjsFjX7UMSMgZiyxxaNLkoJENbrGExzERFeoTpGw3F3FypTiWAP9ZXzkEw==
|
integrity sha512-WsbX4WbjuMvTdeVL6+J3rK1RGhCTqjsFjX7UMSMgZiyxxaNLkoJENbrGExzERFeoTpGw3F3FypTiWAP9ZXzkEw==
|
||||||
|
|
||||||
"eslint-plugin-matrix-org@github:matrix-org/eslint-plugin-matrix-org#main":
|
"eslint-plugin-matrix-org@github:matrix-org/eslint-plugin-matrix-org#main":
|
||||||
version "0.3.1"
|
version "0.3.2"
|
||||||
resolved "https://codeload.github.com/matrix-org/eslint-plugin-matrix-org/tar.gz/b55649a0f48ee27155c1968ed5050b6ddc5afdbe"
|
resolved "https://codeload.github.com/matrix-org/eslint-plugin-matrix-org/tar.gz/28d392822533a7468be0dd806d0a4ba573a45d74"
|
||||||
|
|
||||||
eslint-rule-composer@^0.3.0:
|
eslint-rule-composer@^0.3.0:
|
||||||
version "0.3.0"
|
version "0.3.0"
|
||||||
|
|||||||
Reference in New Issue
Block a user