Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
get_raw_unread_data: Extract func to get unreads from ums.
Aman Agrawale02f0fb1c4d2
diff --git a/zerver/lib/message.py b/zerver/lib/message.pyindex 6ea0579cfc3..3aaaf62543f 100644--- a/zerver/lib/message.py+++ b/zerver/lib/message.py@@ -863,6 +863,12 @@ def get_raw_unread_data(user_profile: UserProfile) -> RawUnreadMessagesResult:user_msgs = list(user_msgs[:MAX_UNREAD_MESSAGES])rows = list(reversed(user_msgs))+ return extract_unread_data_from_um_rows(rows, user_profile)++def extract_unread_data_from_um_rows(+ rows: List[Dict[str, Any]],+ user_profile: UserProfile+) -> RawUnreadMessagesResult:muted_stream_ids = get_muted_stream_ids(user_profile)