mirror of
https://github.com/zulip/zulip.git
synced 2025-11-07 07:23:22 +00:00
upload: Do not open compose box when editing.
Previously editing a message and uploading a file in the edit textarea opened the message compose box. Fixes #15890.
This commit is contained in:
@@ -228,7 +228,7 @@ exports.setup_upload = function (config) {
|
|||||||
}
|
}
|
||||||
const split_uri = uri.split("/");
|
const split_uri = uri.split("/");
|
||||||
const filename = split_uri[split_uri.length - 1];
|
const filename = split_uri[split_uri.length - 1];
|
||||||
if (!compose_state.composing()) {
|
if (config.mode === "compose" && !compose_state.composing()) {
|
||||||
compose_actions.start("stream");
|
compose_actions.start("stream");
|
||||||
}
|
}
|
||||||
const absolute_uri = exports.make_upload_absolute(uri);
|
const absolute_uri = exports.make_upload_absolute(uri);
|
||||||
|
|||||||
Reference in New Issue
Block a user