mirror of https://github.com/zulip/zulip.git
message_edit: Fix error handling if user has re-narrowed.
This commit is contained in:
parent
985b4072c0
commit
ff575aed99
|
@ -102,9 +102,11 @@ exports.save = function (row, from_topic_edited_only) {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
error: function (xhr, error_type, xhn) {
|
error: function (xhr, error_type, xhn) {
|
||||||
|
if (msg_list === current_msg_list) {
|
||||||
var message = channel.xhr_error_message("Error saving edit", xhr);
|
var message = channel.xhr_error_message("Error saving edit", xhr);
|
||||||
row.find(".edit_error").text(message).show();
|
row.find(".edit_error").text(message).show();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
// The message will automatically get replaced when it arrives.
|
// The message will automatically get replaced when it arrives.
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue