Pass in SendMessageResponse to onMessageSent callback, instead of mostly empty Message object

This commit is contained in:
Kriz Mendoza
2020-09-08 18:05:05 -07:00
parent cdd968f39f
commit f5f7ab9f40
+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);