feat(realtime): emit recording_video activity in circle-video flow
Some checks failed
CI / test (push) Has been cancelled

This commit is contained in:
2026-03-08 20:13:43 +03:00
parent 1d2610a796
commit 7453e1ec06
2 changed files with 10 additions and 1 deletions

View File

@@ -828,6 +828,12 @@ export function MessageComposer() {
if (!selectedFiles.length || !activeChatId || !me) {
return;
}
const isCircleVideoFlow =
selectedFiles.length === 1 && inferType(selectedFiles[0]) === "video" && sendAsCircle;
if (isCircleVideoFlow) {
emitTypingStopIfActive();
sendRealtimeChatEvent("recording_video_start");
}
setIsUploading(true);
setUploadError(null);
setUploadProgress(0);
@@ -895,6 +901,9 @@ export function MessageComposer() {
} finally {
setIsUploading(false);
setUploadProgress(0);
if (isCircleVideoFlow) {
sendRealtimeChatEvent("recording_video_stop");
}
}
if (previewUrl) {
URL.revokeObjectURL(previewUrl);