londonappbrewery/Flash-Chat-Flutter-Complete

bug: hitting send button when current textField is empty will send the last message

wq-yang opened this issue · 1 comments

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.