mirror of
https://github.com/zulip/zulip.git
synced 2026-06-03 21:01:43 +08:00
With the backfill migration complete, all 1:1 and self DMs now use DirectMessageGroup recipients. Remove the PREFER_DIRECT_MESSAGE_GROUP setting and all code paths that conditionally used personal recipients when the setting was False. This simplifies recipient_users.py to always use get_or_create_direct_message_group, updates all data importers (Slack, Mattermost, Rocket.Chat) to always create DM groups for 1:1 messages, and removes all @override_settings decorators and tests that only exercised the personal-recipient code path. Some tests see query count changes from removing the redundant get_direct_message_group lookup in get_recipient_from_user_profiles (which now falls through directly to get_or_create_direct_message_group), and from tests that previously pinned PREFER_DIRECT_MESSAGE_GROUP=False now producing DM group recipients instead of personal ones. |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| test_counts.py | ||
| test_fixtures.py | ||
| test_stats_views.py | ||