Do not show daily challenge conclusion notification on disconnection

Closes https://github.com/ppy/osu/issues/30194.
This commit is contained in:
Bartłomiej Dach 2024-10-11 14:18:19 +02:00
parent 9d1eb842a7
commit 968835bb44
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -410,7 +410,7 @@ private void onlineStateChanged(ValueChangedEvent<APIState> state) => Schedule((
private void dailyChallengeChanged(ValueChangedEvent<DailyChallengeInfo?> change) private void dailyChallengeChanged(ValueChangedEvent<DailyChallengeInfo?> change)
{ {
if (change.OldValue?.RoomID == room.RoomID.Value && change.NewValue == null) if (change.OldValue?.RoomID == room.RoomID.Value && change.NewValue == null && metadataClient.IsConnected.Value)
{ {
notificationOverlay?.Post(new SimpleNotification { Text = DailyChallengeStrings.ChallengeEndedNotification }); notificationOverlay?.Post(new SimpleNotification { Text = DailyChallengeStrings.ChallengeEndedNotification });
} }