mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 06:23:38 +00:00
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:
committed by
Tim Abbott
parent
42e1b104e2
commit
89c53f015f
@@ -1011,6 +1011,10 @@ export function validate(scheduling_message: boolean, show_banner = true): boole
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (upload_in_progress) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user