From c9a49e3e70be325c3da28c833eb7be7474557ff4 Mon Sep 17 00:00:00 2001 From: gxz Date: Thu, 22 Feb 2024 16:46:51 +0800 Subject: [PATCH] chore: optimize --- src/client.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client.ts b/src/client.ts index e55cec3..981f9e7 100644 --- a/src/client.ts +++ b/src/client.ts @@ -146,7 +146,7 @@ export class FakeRTCClient extends FakeAgoraEventEmitter { this.uid = randUuid(); // eslint-disable-next-line @typescript-eslint/ban-ts-comment //@ts-ignore websdk的私有属性 - this._joinInfo?.uid = this.uid; + this._joinInfo.uid = this.uid; this.channelName = FAKE_CHANNEL_NAME; return Promise.resolve(this.uid); }