upload: Prevent sending messages during file uploads.

Previously, users could send messages before uploads finished,
resulting in incomplete messages with "Uploading..." text.

This commit blocks sending until uploads complete.

Fixes: #33986.
This commit is contained in:
Aditya Kumar Kasaudhan
2025-03-14 07:15:02 +05:30
committed by Tim Abbott
parent 42e1b104e2
commit 89c53f015f

View File

@@ -1011,6 +1011,10 @@ export function validate(scheduling_message: boolean, show_banner = true): boole
return false;
}
if (upload_in_progress) {
return false;
}
return true;
}