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:
Zev Benjamin 2012-10-19 17:00:27 -04:00
parent 337836ef54
commit 9c2da407e6
1 changed files with 2 additions and 0 deletions

View File

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