mirror of https://github.com/zulip/zulip.git
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:
parent
e123f8f723
commit
f9459bba12
|
@ -228,7 +228,7 @@ exports.setup_upload = function (config) {
|
|||
}
|
||||
const split_uri = uri.split("/");
|
||||
const filename = split_uri[split_uri.length - 1];
|
||||
if (!compose_state.composing()) {
|
||||
if (config.mode === "compose" && !compose_state.composing()) {
|
||||
compose_actions.start("stream");
|
||||
}
|
||||
const absolute_uri = exports.make_upload_absolute(uri);
|
||||
|
|
Loading…
Reference in New Issue