mirror of
https://github.com/osukey/osukey.git
synced 2025-08-02 22:26:41 +09:00
Send password in request ctor directly
This commit is contained in:
@ -86,11 +86,8 @@ namespace osu.Game.Screens.OnlinePlay.Components
|
||||
|
||||
public virtual void JoinRoom(Room room, string password = null, Action<Room> onSuccess = null, Action<string> onError = null)
|
||||
{
|
||||
// todo: send into JoinRoomRequest directly?
|
||||
room.Password.Value = password;
|
||||
|
||||
currentJoinRoomRequest?.Cancel();
|
||||
currentJoinRoomRequest = new JoinRoomRequest(room);
|
||||
currentJoinRoomRequest = new JoinRoomRequest(room, password);
|
||||
|
||||
currentJoinRoomRequest.Success += () =>
|
||||
{
|
||||
|
Reference in New Issue
Block a user