Skip to content

Commit 1d88d8a

Browse files
authored
fix(renderer-app): add record tips (#1358)
1 parent 30cc4dd commit 1d88d8a

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

desktop/renderer-app/src/stores/class-room-store.ts

+11-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ import { WhiteboardStore } from "./whiteboard-store";
3636
import { RouteNameType, usePushHistory } from "../utils/routes";
3737
import { useSafePromise } from "../utils/hooks/lifecycle";
3838
import { ShareScreenStore } from "./share-screen-store";
39-
import { i18n } from "i18next";
39+
import i18next, { i18n } from "i18next";
40+
import { message } from "antd";
4041

4142
export type { User } from "./user-store";
4243

@@ -186,6 +187,15 @@ export class ClassRoomStore {
186187
},
187188
);
188189

190+
reaction(
191+
() => this.isRecording,
192+
(isRecording: boolean) => {
193+
if (isRecording) {
194+
void message.success(i18next.t("start-recording"));
195+
}
196+
},
197+
);
198+
189199
this.rtm.once(RTMessageType.REMOTE_LOGIN, () => {
190200
runInAction(() => {
191201
this.isRemoteLogin = true;

0 commit comments

Comments
 (0)