From 9a53181598efba703c044a59236906b136032735 Mon Sep 17 00:00:00 2001 From: hyrious Date: Mon, 6 Mar 2023 14:23:49 +0800 Subject: [PATCH] refactor(flat-stores): delete avatar window on leaving stage --- packages/flat-stores/src/classroom-store/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/flat-stores/src/classroom-store/index.ts b/packages/flat-stores/src/classroom-store/index.ts index 90c21c59d98..b62b4d3da95 100644 --- a/packages/flat-stores/src/classroom-store/index.ts +++ b/packages/flat-stores/src/classroom-store/index.ts @@ -1012,6 +1012,7 @@ export class ClassroomStore { } if (!onStage && (!this.isCreator || userUUID !== this.userUUID)) { this.updateDeviceState(userUUID, false, false); + this.deleteAvatarWindow(userUUID); } if (this.classroomStorage?.state.raiseHandUsers.includes(userUUID)) { const raiseHandUsers = this.classroomStorage.state.raiseHandUsers;