zulip/zerver
Prakhar Pratyush 02f3f73b0c recipient_info: Include 'sender_id' in 'topic_participant_user_ids'.
This commit includes the message's sender id in the
'topic_participant_user_ids' set.

The 'participants_for_topic' function doesn't include the sender_id,
if the user is sending their first message in the topic, because
'participants_for_topic' queries the 'Message' table, but the message
is actually sent at a later stage in the codepath, resulting in
missing the sender_id in this case.

This is needed to set the 'wildcard_mentioned' flag for the sender's
user message in the case of topic wildcard mentions.

This doesn't lead to sending email and push notifications to the
sender because we have a check to skip notifications if the user
to receive notifications is the sender itself.

This should have been included in c0c30bc.
2023-10-06 11:38:37 -07:00
..
actions recipient_info: Include 'sender_id' in 'topic_participant_user_ids'. 2023-10-06 11:38:37 -07:00
data_import Add support for importing guest users from Mattermost. 2023-10-01 17:13:23 -07:00
integration_fixtures/nagios
lib settings: Add automatically follow and unmute topics policy settings. 2023-10-04 13:04:29 -07:00
management delete_old_unclaimed_attachments: Update docs on default max age. 2023-09-29 09:49:03 -07:00
migrations migrations: Fix initial value for automatic policy migrations. 2023-10-05 16:11:25 -07:00
openapi middleware: Send got_request_exception signal for JSON 500 errors. 2023-10-04 17:25:20 -07:00
tests recipient_info: Include 'sender_id' in 'topic_participant_user_ids'. 2023-10-06 11:38:37 -07:00
tornado python: Delete superfluous parens. 2023-09-13 13:40:19 -07:00
transaction_tests docs: Fix typos caught by ‘typos’. 2023-09-06 18:59:05 -07:00
views middleware: Send got_request_exception signal for JSON 500 errors. 2023-10-04 17:25:20 -07:00
webhooks newrelic: ids are uuids, not integers. 2023-10-05 09:44:51 -07:00
worker python: Replace functools.partial with type-safe returns.curry.partial. 2023-09-11 18:03:45 -07:00
__init__.py
apps.py requirements: Upgrade Python requirements. 2023-04-03 22:39:21 -07:00
context_processors.py emails: Add corporate_enabled to context for emails. 2023-05-01 10:32:43 -07:00
decorator.py logging_util: Remove dependence on get_current_request. 2023-07-11 22:23:47 -07:00
filters.py error_notify: Remove custom email error reporting handler. 2023-07-20 11:00:09 -07:00
forms.py realm: Differentiate reserved realms from in-use realms. 2023-09-25 12:48:14 -07:00
logging_handlers.py error_notify: Remove custom email error reporting handler. 2023-07-20 11:00:09 -07:00
middleware.py middleware: Send got_request_exception signal for JSON 500 errors. 2023-10-04 17:25:20 -07:00
models.py settings: Add automatically follow and unmute topics policy settings. 2023-10-04 13:04:29 -07:00
signals.py demo-orgs: Create dev environment demo organization without email. 2023-08-31 15:02:16 -07:00