Merge pull request #79 from the-mighty/master

Pass in SendMessageResponse to onMessageSent callback, instead of mos…
This commit is contained in:
Salvatore Giordano
2020-09-09 10:29:17 +02:00
committed by GitHub
+2 -2
View File
@@ -909,9 +909,9 @@ class MessageInputState extends State<MessageInput> {
);
}
return sendingFuture.whenComplete(() {
return sendingFuture.then((resp) {
if (widget.onMessageSent != null) {
widget.onMessageSent(message);
widget.onMessageSent(resp.message);
} else {
if (widget.editMessage != null) {
Navigator.pop(context);