[TRY] tried to bind the label data, doesn't work yet

This commit is contained in:
Dogukan
2020-10-23 11:30:06 +02:00
parent 1c04ab95c0
commit 0d44b2d840
2 changed files with 13 additions and 16 deletions

View File

@@ -179,9 +179,10 @@ namespace Client
case JSONConvert.RANDOMWORD:
//Flag byte for receiving the random word.
int lobbyId = JSONConvert.GetLobbyID(payload);
string randomWord = JSONConvert.GetRandomWord(payload);
if(data.Lobby?.ID == lobbyId)
ViewModels.ViewModelGame.HandleRandomWord(JSONConvert.GetRandomWord(payload));
if (data.Lobby?.ID == lobbyId)
ViewModels.ViewModelGame.HandleRandomWord(randomWord);
break;
default:
Debug.WriteLine("[CLIENT] Received weird identifier: " + id);