forked from zulip/zulip
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
notifications: Fix soft-deactivated users don't get push notifications.
Fixes part of zulip#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: Removing stream_push_user_ids and stream_email_user_ids from long_term_idle_user_ids ensures that a UserMessage row is created in `create_user_messages`.
- Loading branch information
1 parent
169de2f
commit f79c3b1
Showing
2 changed files
with
32 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters