Skip to content

Commit 401ba49

Browse files
authored
fix(service-providers): network status error of the class room page (#1734)
1 parent 133edb4 commit 401ba49

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/flat-stores/src/classroom-store/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@ export class ClassroomStore {
518518
this.toggleCloudStoragePanel(true);
519519
const cloudStorage = this.whiteboardStore.cloudStorageStore;
520520
cloudStorage.setPanelExpand(true);
521-
cloudStorage.uploadTaskManager.addTasks([file]);
521+
cloudStorage.uploadTaskManager.addTasks([file], cloudStorage.parentDirectoryPath);
522522
};
523523

524524
public onMessageSend = async (text: string): Promise<void> => {

service-providers/agora-rtc/agora-rtc-electron/src/agora-rtc-electron.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ export class AgoraRTCElectron extends IServiceVideoChat {
219219
if (!this.isJoinedRoom) {
220220
return;
221221
}
222-
if (!uid || this.uid === uid) {
222+
if (!uid || uid === "0" || this.uid === uid) {
223223
return this.localAvatar;
224224
}
225225
if (this.shareScreenUID === uid) {
@@ -537,7 +537,7 @@ export class AgoraRTCElectron extends IServiceVideoChat {
537537
downlinkQuality: AgoraNetworkQuality,
538538
): void => {
539539
const uid: IServiceVideoChatUID = String(uid_);
540-
if (!uid || uid === this.uid) {
540+
if (uid === "0" || uid === this.uid) {
541541
uplink = uplinkQuality;
542542
downlink = downlinkQuality;
543543
this.events.emit("network", { uplink, downlink, delay });

0 commit comments

Comments
 (0)