-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FEATURE: Delay push notifications as we do with emails #11574
Conversation
Does this mean if a notification is created in Discourse, we might delay or not send out the push notification? |
The idea is that we delay it, and after the delay we check if the user wasn't on the site during the delay, which means he already saw the discourse notification and don't need a push one to go for the mobile device. |
Ah icic. This is a good change to have but I kind of wished we had some way to centralise the logic of sending out "external" notifications like push and emails. |
Yes, that would be cool, but also a larger change. |
But I don’t think we should be using a site settings meant for email on
push notifications. If the intention is to make push notifications behave
like emails, we should centralised the logic and rename the site setting so
that it applies to both.
…On Mon, 28 Dec 2020 at 23:43, Rafael dos Santos Silva < ***@***.***> wrote:
Ah icic. This is a good change to have but I kind of wished we had some
way to centralise the logic of sending out "external" notifications like
push and emails.
Yes, that would be cool, but also a larger change.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#11574 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABBCQ7TK62NDUEYBSLQXCATSXCRR7ANCNFSM4VHO3ALA>
.
|
I agree with @tgxworld - it is counter intuitive that the site setting refers to email when it's not. |
so sorry I am closing this, I think we got to do the bigger change here if we are going down this path. Also we don't delay this one... discourse/app/services/post_alerter.rb Lines 487 to 508 in 626b846
We should be consistent here if we are making a change. Maybe a Probably worth a dev TODO so we can scope it out. |
@tgxworld What is your opinion here?
My problem is that while actively navigating Meta I get push notifications for replies I already read and replied.
In my opinion, mirroring our email delay would solve this problem cheaply.
I could also check if the target post of a notifications was already read, but that depends on the notification type and it's expensive to query post_timings.