Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

message_list_view: Add TODO for followup for later.

evykassirerd0c63be9bee8
diff --git a/web/src/message_list_view.ts b/web/src/message_list_view.ts
index a40491e8ffc..6b1e7c40031 100644
--- a/web/src/message_list_view.ts
+++ b/web/src/message_list_view.ts
@@ -175,6 +175,9 @@ function analyze_edit_history(
}
if (edit_history_event.prev_topic) {
+ // 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.
assert(edit_history_event.topic !== undefined);
// We know it has a topic edit. Now we need to determine if
// it was a true move or a resolve/unresolve.