Change notification interval to 30 minutes

This commit is contained in:
Bartłomiej Dach 2024-08-12 11:24:59 +02:00
parent 54a1d79136
commit 96bd374b18
No known key found for this signature in database

View File

@ -155,7 +155,7 @@ namespace osu.Game.Screens.Menu
// We only want to notify the user if a new challenge recently went live. // We only want to notify the user if a new challenge recently went live.
if (room.StartDate.Value != null if (room.StartDate.Value != null
&& Math.Abs((DateTimeOffset.Now - room.StartDate.Value!.Value).TotalSeconds) < 600 && Math.Abs((DateTimeOffset.Now - room.StartDate.Value!.Value).TotalSeconds) < 1800
&& room.RoomID.Value != lastNotifiedDailyChallengeRoomId) && room.RoomID.Value != lastNotifiedDailyChallengeRoomId)
{ {
lastNotifiedDailyChallengeRoomId = room.RoomID.Value; lastNotifiedDailyChallengeRoomId = room.RoomID.Value;