mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 22:13:26 +00:00
Only attempt to reorder a message if we had it in the message list originally
(imported from commit 0b2802c1f1b6b17cd9f52dd9cecdf84f6f1cf5b0)
This commit is contained in:
@@ -537,6 +537,8 @@ MessageList.prototype = {
|
|||||||
var value = this._hash[old_id];
|
var value = this._hash[old_id];
|
||||||
delete this._hash[old_id];
|
delete this._hash[old_id];
|
||||||
this._hash[new_id] = value;
|
this._hash[new_id] = value;
|
||||||
|
} else {
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this._selected_id === old_id) {
|
if (this._selected_id === old_id) {
|
||||||
|
|||||||
Reference in New Issue
Block a user