mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 22:13:26 +00:00
Add unread_msgs to the initial state data.
We are adding a new list of unread message ids grouped by conversation to the queue registration result. This will allow clients to show accurate unread badges without needing to load an unbound number of historic messages. Jason started this commit, and then Steve Howell finished it. We only identify conversations using stream_id/user_id info; we may need a subsequent version that includes things like stream names and user emails/names for API clients that don't have data structures to map ids -> attributes.
This commit is contained in:
committed by
Tim Abbott
parent
04729a0e79
commit
4f0110e081
@@ -47,7 +47,8 @@ from zerver.models import Realm, RealmEmoji, Stream, UserProfile, UserActivity,
|
||||
get_old_unclaimed_attachments, get_cross_realm_emails, \
|
||||
Reaction, EmailChangeStatus, CustomProfileField, \
|
||||
custom_profile_fields_for_realm, \
|
||||
CustomProfileFieldValue, validate_attachment_request, get_system_bot
|
||||
CustomProfileFieldValue, validate_attachment_request, get_system_bot, \
|
||||
get_display_recipient_by_id
|
||||
|
||||
from zerver.lib.alert_words import alert_words_in_realm
|
||||
from zerver.lib.avatar import avatar_url
|
||||
|
||||
Reference in New Issue
Block a user