mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 04:53:36 +00:00
Don't error out if we get an edit for a message that's out of view
(imported from commit 042cadc8657d048d0fd3a410af5adbbaeac7d92d)
This commit is contained in:
committed by
Jessica McKellar
parent
5d013b78eb
commit
1d601134ed
@@ -169,7 +169,8 @@ exports.is_editing = function (id) {
|
||||
|
||||
exports.end = function (row) {
|
||||
var message = current_msg_list.get(rows.id(row));
|
||||
if (currently_editing_messages[message.id] !== undefined) {
|
||||
if (message !== undefined &&
|
||||
currently_editing_messages[message.id] !== undefined) {
|
||||
var scroll_by = currently_editing_messages[message.id].scrolled_by;
|
||||
viewport.scrollTop(viewport.scrollTop() - scroll_by);
|
||||
delete currently_editing_messages[message.id];
|
||||
|
||||
Reference in New Issue
Block a user