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:
Waseem Daher
2013-01-11 16:14:45 -05:00
parent bfa1e98e35
commit 5b473a18c3
2 changed files with 7 additions and 7 deletions

View File

@@ -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";