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:
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)
|
||||
|
Loading…
Reference in New Issue
Block a user