mirror of
https://github.com/zulip/zulip.git
synced 2025-11-07 07:23:22 +00:00
Have the "New stream/new PM" buttons no longer clear message contents.
If you're currently composing a message and you click one of those, it now no longer clears out your old message contents, making it more analogous to the job the old selector used to play. (imported from commit b935a3bf307bdbd82f1ee7db31d3a3c89c623195)
This commit is contained in:
@@ -187,9 +187,9 @@ exports.clear = function () {
|
||||
// Set the mode of a compose already in progress.
|
||||
// Does not clear the input fields.
|
||||
exports.set_mode = function (mode) {
|
||||
if (!is_composing_message)
|
||||
return;
|
||||
|
||||
if (!is_composing_message) {
|
||||
exports.start(mode);
|
||||
}
|
||||
if (mode === 'private') {
|
||||
show('private', $("#private_message_recipient"));
|
||||
is_composing_message = "private";
|
||||
|
||||
Reference in New Issue
Block a user