Pass in SendMessageResponse to onMessageSent callback, instead of mostly empty Message object
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user