users: Send user creation events when sending DMs.

We now send user creation events to recipient users
when sending DMs if recipients gain access to either
sender or other pariticpating users in the DM.
This commit is contained in:
Sahil Batra
2023-10-25 17:32:18 +05:30
committed by Tim Abbott
parent e4a97dd3ac
commit 32c15d67b5
4 changed files with 144 additions and 4 deletions

View File

@@ -209,6 +209,7 @@ class SendMessageRequest:
service_queue_events: Optional[Dict[str, List[Dict[str, Any]]]] = None
disable_external_notifications: bool = False
automatic_new_visibility_policy: Optional[int] = None
recipients_for_user_creation_events: Optional[Dict[UserProfile, Set[int]]] = None
# We won't try to fetch more unread message IDs from the database than