Skip to content

Commit

Permalink
fix(service-providers): electron uid wrong type (#1672)
Browse files Browse the repository at this point in the history
  • Loading branch information
hyrious authored Sep 1, 2022
1 parent 9f9cfcb commit b9ab14a
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,8 @@ export class AgoraRTCElectron extends IServiceVideoChat {
});

this._roomSideEffect.add(() => {
const handler = (uid: IServiceVideoChatUID): void => {
const handler = (uid_: number): void => {
const uid: IServiceVideoChatUID = String(uid_);
if (this.shareScreenUID === uid && this.shareScreen.shouldSubscribeRemoteTrack()) {
this.shareScreen.setActive(true);
return;
Expand All @@ -508,7 +509,8 @@ export class AgoraRTCElectron extends IServiceVideoChat {
});

this._roomSideEffect.add(() => {
const handler = (uid: IServiceVideoChatUID): void => {
const handler = (uid_: number): void => {
const uid: IServiceVideoChatUID = String(uid_);
if (this.shareScreenUID === uid) {
this.shareScreen.setActive(false);
return;
Expand All @@ -530,10 +532,11 @@ export class AgoraRTCElectron extends IServiceVideoChat {
let delay = NaN;

const onNetworkQuality = (
uid: IServiceVideoChatUID,
uid_: number,
uplinkQuality: AgoraNetworkQuality,
downlinkQuality: AgoraNetworkQuality,
): void => {
const uid: IServiceVideoChatUID = String(uid_);
if (!uid || uid === this.uid) {
uplink = uplinkQuality;
downlink = downlinkQuality;
Expand Down

0 comments on commit b9ab14a

Please sign in to comment.