Skip to content
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

Fix daily challenge notification spam #29363

Merged
merged 5 commits into from
Aug 12, 2024

Conversation

peppy
Copy link
Member

@peppy peppy commented Aug 9, 2024

Notification will now only show:

  • Once per room.
  • Only if game was opened or user logged in within 30 minutes of the room going live.

Note that the second point here changes (simplifies) the behaviour by always showing, even in the game-started case. Previously it would only show if logging in. I think this aligns better.

Closes #29295.

  • Untested because staging is currently not allowing login. Should be tested before merged.

@peppy peppy added the next release Pull requests which are almost there. We'll aim to get them in the next release, but no guarantees! label Aug 9, 2024
@bdach bdach self-requested a review August 12, 2024 09:03
@pull-request-size pull-request-size bot added size/M and removed size/S labels Aug 12, 2024
if (postNotification)
// We only want to notify the user if a new challenge recently went live.
if (room.StartDate.Value != null
&& Math.Abs((DateTimeOffset.Now - room.StartDate.Value!.Value).TotalSeconds) < 600
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Before I go further - this is 10 minutes rather than 30, is it not? Is that ok?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

make a call, i think earthier is fine depending on perspective

@pull-request-size pull-request-size bot added size/S and removed size/M labels Aug 12, 2024
@bdach bdach merged commit 92bd123 into ppy:master Aug 12, 2024
8 of 9 checks passed
@peppy peppy deleted the fix-daily-challenge-notification-spam branch August 13, 2024 07:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:daily-challenge next release Pull requests which are almost there. We'll aim to get them in the next release, but no guarantees! size/S
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Daily challenge notification appearing twice after every relog
2 participants