Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
edit_history: Add comments detailing when user_id can be null.
Tim Abbott8376acb3b835
diff --git a/zerver/lib/types.py b/zerver/lib/types.pyindex a765ab0adfd..f1ef411ba46 100644--- a/zerver/lib/types.py+++ b/zerver/lib/types.py@@ -96,6 +96,10 @@ class EditHistoryEvent(TypedDict, total=False):Database format for edit history events."""+ # user_id is null for precisely those edit history events+ # predating March 2017, when we started tracking the person who+ # made edits, which is still years after the introduction of topic+ # editing support in Zulip.user_id: Optional[int]timestamp: intprev_stream: int@@ -112,6 +116,7 @@ class FormattedEditHistoryEvent(TypedDict, total=False):Extended format used in the edit history endpoint."""+ # See EditHistoryEvent for details on when this can be null.user_id: Optional[int]timestamp: intprev_stream: int