Fix wrong logic in handling local-only message edit saves

(imported from commit a9074fbfb75884c3280807ddeba576c0fbe313b7)
This commit is contained in:
Leo Franchi
2014-03-13 15:06:16 -04:00
parent bba2eb7622
commit 9162ef3e0f

View File

@@ -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);