zulip/zerver
sayyedarib 5c993f0479 direct_message: Allow DMs to bots and self regardless of policy.
Previously, in DM disabled org messaging to bot was not working when
starting new conversation and adding bot as recipient because of not
updating on recipient change. And secondly, self messaging was not
allowed.
This commit ensures that the DM to bot and self are allowed irrespective
of dm restrictions.

tests: Verify DMs adhere to DM restriction policy.

Fixes #28412

Signed-off-by: sayyedarib <sayyedaribhussain4321@gmail.com>
2024-02-15 16:13:36 -08:00
..
actions direct_message: Allow DMs to bots and self regardless of policy. 2024-02-15 16:13:36 -08:00
data_import ruff: Fix SIM113 Use `enumerate()` for index variable in `for` loop. 2024-02-02 10:30:45 -08:00
integration_fixtures/nagios
lib tornado: Drop WebReloadClientError logic. 2024-02-15 15:42:50 -08:00
management tornado: Add a --no-immediate-reloads flag to leave web clients alone. 2024-02-15 15:42:50 -08:00
migrations ruff: Fix SIM113 Use `enumerate()` for index variable in `for` loop. 2024-02-02 10:30:45 -08:00
models ruff: Fix DJ012 Order of model's inner classes, methods, and fields. 2024-01-29 10:41:54 -08:00
openapi tornado: Split server restart events from web client reload events. 2024-02-15 15:42:50 -08:00
tests direct_message: Allow DMs to bots and self regardless of policy. 2024-02-15 16:13:36 -08:00
tornado tornado: Add a web_reload_clients endpoint to notify web clients. 2024-02-15 15:42:50 -08:00
transaction_tests models: Extract zerver.models.realms. 2023-12-16 22:08:44 -08:00
views decorator: Rename internal_notify_view. 2024-02-15 15:42:50 -08:00
webhooks integrations: Create incoming webhook for GitHub Sponsors. 2024-02-07 09:52:03 -08:00
worker queue_processors: Process user_activity in one query. 2024-01-22 16:25:13 -08:00
__init__.py
apps.py mypy: Enable new error explicit-override. 2023-10-12 12:28:41 -07:00
context_processors.py login: Remove external_authentication_methods from page_params. 2023-12-29 13:02:12 -08:00
decorator.py decorator: Rename internal_notify_view. 2024-02-15 15:42:50 -08:00
filters.py mypy: Enable new error explicit-override. 2023-10-12 12:28:41 -07:00
forms.py models: Extract zerver.models.realms. 2023-12-16 22:08:44 -08:00
logging_handlers.py error_notify: Remove custom email error reporting handler. 2023-07-20 11:00:09 -07:00
middleware.py Revert "zproject: Prevent having exactly 17/18 middlewares, for Python 3.11 bug." 2024-02-05 19:57:21 -05:00
signals.py email: Add a space after the time and AM/PM in the login email. 2023-11-27 09:47:30 -08:00