[ADD] added buttons reenabled when leaving

This commit is contained in:
Sem van der Hoeven
2020-10-21 21:55:28 +02:00
parent 442cdccc49
commit cc5c71a30f
3 changed files with 16 additions and 15 deletions

View File

@@ -169,6 +169,7 @@ namespace Server.Models
case LobbyIdentifier.LEAVE:
id = JSONConvert.GetLobbyID(payload);
ServerCommunication.INSTANCE.LeaveLobby(User, id);
sendMessage(JSONConvert.ConstructLobbyLeaveMessage(id));
ServerCommunication.INSTANCE.sendToAll(JSONConvert.ConstructLobbyListMessage(ServerCommunication.INSTANCE.lobbies.ToArray()));
break;
}