1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-14 02:03:22 +08:00

Remove unnecessary schedule logic

This commit is contained in:
Dean Herbert 2023-10-12 17:55:58 +09:00
parent cde4fad610
commit a1a9bb75b7
No known key found for this signature in database

View File

@ -451,19 +451,16 @@ namespace osu.Game.Online.Multiplayer
if (apiUser == null || apiRoom == null) return;
Scheduler.Add(() =>
{
PostNotification?.Invoke(
new UserAvatarNotification(apiUser, $"{apiUser.Username} invited you to a multiplayer match:\"{apiRoom.Name}\"!")
PostNotification?.Invoke(
new UserAvatarNotification(apiUser, $"{apiUser.Username} invited you to a multiplayer match:\"{apiRoom.Name}\"!")
{
Activated = () =>
{
Activated = () =>
{
InviteAccepted?.Invoke(apiRoom, password);
return true;
}
InviteAccepted?.Invoke(apiRoom, password);
return true;
}
);
});
}
);
}
private Task<Room?> lookupRoom(long id)