In the chat screen, after the user has sent a message, the textField became empty, which is right for now, but if the user hits the send button again, it will send the last message.
It is because the messageText is not set to empty string after last message is sent.
This problem can also be fixed by refactoring like this Pull Request do.
In the chat screen, after the user has sent a message, the textField became empty, which is right for now, but if the user hits the send button again, it will send the last message.
It is because the
messageText
is not set to empty string after last message is sent.This problem can also be fixed by refactoring like this Pull Request do.