mirror of https://github.com/zulip/zulip.git
aeb9a27d0e
Zulip's unread messages design has an invariant that all unread stream messages must be in streams the user is subscribed to. For example, We do not include the unread messages from unsubscribed streams in the "unread_msgs" data structure in "/register" response and we mark all unread messages as read when unsubscribing a user from a stream. Previously, the mark as unread endpoint allowed violating that invariant, allowing you to mark messages in any stream as unread. Doing so caused the "message_details" data structures sent with "update_message_flags" events to not contain messages from unsubscribed streams, even though those messages were present in the set of message IDs. These malformed events, in turn, caused exceptions in the frontend's processing of such an event. This change is paired with a separate UI change to not offer the "Mark as unread" feature in such streams; with just this commit, that will silently fail. With some additions to the tests by tabbott. |
||
---|---|---|
.. | ||
__init__.py | ||
alert_words.py | ||
bots.py | ||
create_realm.py | ||
create_user.py | ||
custom_profile_fields.py | ||
default_streams.py | ||
hotspots.py | ||
invites.py | ||
message_delete.py | ||
message_edit.py | ||
message_flags.py | ||
message_send.py | ||
muted_users.py | ||
presence.py | ||
reactions.py | ||
realm_domains.py | ||
realm_emoji.py | ||
realm_export.py | ||
realm_icon.py | ||
realm_linkifiers.py | ||
realm_logo.py | ||
realm_playgrounds.py | ||
realm_settings.py | ||
streams.py | ||
submessage.py | ||
typing.py | ||
uploads.py | ||
user_activity.py | ||
user_groups.py | ||
user_settings.py | ||
user_status.py | ||
user_topics.py | ||
users.py | ||
video_calls.py |