zulip/zerver
Prakhar Pratyush d6c48b7185 delete_message: Fix recipients of "delete_message" event.
Earlier, we were sending 'delete_message' event to all active
subscribers of the stream.

We shouldn't send event to those users who don't have access
to the deleted message in a private stream with protected history.

This commit fixes that bug.

Also, now we use 'event_recipient_ids_for_action_on_messages'.
It helps to add hardening such that if the invariant "no usermessage
row corresponding to a message exists if the user loses access to the
message" is violated due to some bug, it has minimal user impact.
2024-10-07 11:35:06 -07:00
..
actions delete_message: Fix recipients of "delete_message" event. 2024-10-07 11:35:06 -07:00
data_import slack_import: Strip port from "domain_name". 2024-09-26 12:01:11 -07:00
integration_fixtures/nagios
lib delete_message: Fix recipients of "delete_message" event. 2024-10-07 11:35:06 -07:00
management scheduled_messages: Remove separate logfile. 2024-10-04 14:22:37 -07:00
migrations export_realm: Add RealmExport model. 2024-10-04 12:06:35 -07:00
models realm_export: Add a RealmAuditLog entry for delete operation. 2024-10-04 14:17:20 -07:00
openapi message_fetch: Add message_ids parameter to /messages request. 2024-10-07 11:00:40 -07:00
tests delete_message: Fix recipients of "delete_message" event. 2024-10-07 11:35:06 -07:00
tornado django_api: Rename 'send_event' to 'send_event_rollback_unsafe'. 2024-09-20 15:20:18 -07:00
transaction_tests settings: Add group_creator as default for can_manage_group. 2024-10-01 17:35:14 -07:00
views submessage: Add 'durable=True' to the outermost transaction. 2024-10-07 11:35:06 -07:00
webhooks slack_incoming: add ok=true to json in case of success. 2024-10-04 08:42:27 -07:00
worker export_realm: Add RealmExport model. 2024-10-04 12:06:35 -07:00
__init__.py
apps.py ruff: Fix UP007 Use `X | Y` for type annotations. 2024-07-13 22:28:22 -07:00
context_processors.py ruff: Fix UP035 Import from `collections.abc`, `typing` instead. 2024-07-13 22:28:22 -07:00
decorator.py upload: Use tusd for resumable, larger uploads. 2024-09-19 11:37:29 -07:00
filters.py ruff: Fix UP007 Use `X | Y` for type annotations. 2024-07-13 22:28:22 -07:00
forms.py register: Ask which review site for how found zulip. 2024-09-27 13:23:08 -07:00
logging_handlers.py ruff: Fix UP007 Use `X | Y` for type annotations. 2024-07-13 22:28:22 -07:00
middleware.py ruff: Fix UP035 Import from `collections.abc`, `typing` instead. 2024-07-13 22:28:22 -07:00
signals.py ruff: Bump target-version from py38 to py310. 2024-07-13 22:28:22 -07:00