mirror of https://github.com/zulip/zulip.git
Update the current composition type on toggle
This was preventing huddles from sending because clients thought they were still sending a stream message. (imported from commit 694b06cbc43adc9563327ebffccb7fa37aa36bac)
This commit is contained in:
parent
337836ef54
commit
9c2da407e6
|
@ -80,8 +80,10 @@ exports.clear = function () {
|
|||
exports.toggle_mode = function () {
|
||||
if ($("#message-type-tabs li.active").find("a[href=#stream-message]").length !== 0) {
|
||||
// In stream tab, switch to personals.
|
||||
is_composing_message = "huddle";
|
||||
exports.show('personal', $("#huddle_recipient"));
|
||||
} else {
|
||||
is_composing_message = "stream";
|
||||
exports.show('stream', $("#stream"));
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue