1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-22 04:59:54 +08:00

Remove unnecessary schedule logic

This commit is contained in:
Dean Herbert
2023-10-12 17:55:58 +09:00
Unverified
parent cde4fad610
commit a1a9bb75b7
@@ -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)