mirror of
https://github.com/zulip/zulip.git
synced 2025-11-20 22:48:16 +00:00
Previously, if the user had interacted with the Zulip mobile app in the last ~140 seconds, it's likely the mobile app had sent presence data to the Zulip server, which in turns means that the Zulip server might not send that user mobile push notifications (or email notifications) about new messages for the next few minutes. The email notifications behavior is potentially desirable, but the push notifications behavior is definitely not -- a private message reply to something you sent 2 minutes ago is definitely something you want a push notification for. This commit partially addresses that issue, by ignoring presence data from the ZulipMobile client when determining whether the user is currently engaging with a Zulip client (essentially, we're only considering desktop activity as something that predicts the user is likely to see a desktop notification or is otherwise "online").
22 KiB
22 KiB