diff --git a/web/src/message_list_view.ts b/web/src/message_list_view.ts index f0eff86a9a..93de7db21e 100644 --- a/web/src/message_list_view.ts +++ b/web/src/message_list_view.ts @@ -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.