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:
Prakhar Pratyush
2025-02-14 16:51:12 +05:30
committed by Tim Abbott
parent 8561800676
commit dddcd0824e

View File

@@ -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.