mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 05:23:35 +00:00
Fixes the urgent part of #10397. It was discovered that soft-deactivated users don't get mobile push notifications for messages on private streams that they have configured to send push notifications. Reason: `handle_push_notification` calls `access_message`, and that logic assumes that a user who is a recipient of a message has an associated UserMessage row. Those UserMessage rows are created lazily for soft-deactivated users, so they might not exist (yet) until the user comes back. Solution: Ensure that userMessage row is created for stream_push_user_ids and stream_email_user_ids in create_user_messages.