mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 05:23:35 +00:00
Fix wrong logic in handling local-only message edit saves
(imported from commit a9074fbfb75884c3280807ddeba576c0fbe313b7)
This commit is contained in:
@@ -28,7 +28,7 @@ exports.save = function (row) {
|
||||
// just results in the in-memory message being changed
|
||||
if (message.local_id !== undefined) {
|
||||
// No changes
|
||||
if (new_content !== message.raw_content && !new_topic) {
|
||||
if (new_content === message.raw_content && !topic_changed) {
|
||||
return true;
|
||||
}
|
||||
echo.edit_locally(message, new_content, topic_changed ? new_topic : undefined);
|
||||
|
||||
Reference in New Issue
Block a user