mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 22:13:26 +00:00
edited_notice: Fix missing "Moved" notice.
When a message was moved from an empty string topic to another topic, the "Moved" notice beside sender name in the message body was missing. This commit fixes the bug.
This commit is contained in:
committed by
Tim Abbott
parent
8561800676
commit
dddcd0824e
@@ -192,7 +192,7 @@ function analyze_edit_history(
|
||||
moved = true;
|
||||
}
|
||||
|
||||
if (edit_history_event.prev_topic) {
|
||||
if (edit_history_event.prev_topic !== undefined) {
|
||||
// TODO: Possibly this assert could be removed if we tightened the type
|
||||
// on edit history elements such that a `prev_topic` being present means a
|
||||
// `topic` element is.
|
||||
|
||||
Reference in New Issue
Block a user