fix: Joke answers are now shown correctly

This commit is contained in:
Gerard Gascón 2024-01-27 20:36:24 +01:00
parent 84a34deec6
commit 3206317963

View file

@ -36,8 +36,9 @@ namespace Messaging {
} }
private async void SendRandomJoke(float delay) { private async void SendRandomJoke(float delay) {
_currentJoke = GetRandomJoke(); //TODO: Lock send button here
await Task.Delay((int)(delay * 1000)); await Task.Delay((int)(delay * 1000));
_currentJoke = GetRandomJoke();
CreateMessage(_currentJoke.QuestionMessage.Key, false); CreateMessage(_currentJoke.QuestionMessage.Key, false);
} }