mirror of https://github.com/zulip/zulip.git
Clear the class/instance values when replying to a huddle message.
(imported from commit 8953c6a8911503b4d938588e94d2323773f21c6c)
This commit is contained in:
parent
d5c89ffe9d
commit
48a0c65bd6
|
@ -110,8 +110,13 @@ function get_huddle_recipient_names(zephyr) {
|
||||||
function respond_to_zephyr(reply_type) {
|
function respond_to_zephyr(reply_type) {
|
||||||
var zephyr, tabname;
|
var zephyr, tabname;
|
||||||
zephyr = zephyr_dict[selected_zephyr_id];
|
zephyr = zephyr_dict[selected_zephyr_id];
|
||||||
$("#class").val(zephyr.display_recipient);
|
if (zephyr.type === "class") {
|
||||||
$("#instance").val(zephyr.instance);
|
$("#class").val(zephyr.display_recipient);
|
||||||
|
$("#instance").val(zephyr.instance);
|
||||||
|
} else {
|
||||||
|
$("#class").val("");
|
||||||
|
$("#instance").val("");
|
||||||
|
}
|
||||||
$("#huddle_recipient").val(zephyr.reply_to);
|
$("#huddle_recipient").val(zephyr.reply_to);
|
||||||
if (reply_type === "personal" && zephyr.type === "huddle") {
|
if (reply_type === "personal" && zephyr.type === "huddle") {
|
||||||
// reply_to for huddle messages is the whole huddle, so for
|
// reply_to for huddle messages is the whole huddle, so for
|
||||||
|
|
Loading…
Reference in New Issue