From 97dd82aff79986afef3c37430961b10a758e487b Mon Sep 17 00:00:00 2001 From: "Aamir.Muhammad" Date: Thu, 22 Dec 2022 14:39:11 +0300 Subject: [PATCH] chat voice message implementation --- lib/provider/chat_provider_model.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/provider/chat_provider_model.dart b/lib/provider/chat_provider_model.dart index becf4dd..d9de168 100644 --- a/lib/provider/chat_provider_model.dart +++ b/lib/provider/chat_provider_model.dart @@ -1301,7 +1301,7 @@ class ChatProviderModel with ChangeNotifier, DiagnosticableTreeMixin { } void stopPlaying(BuildContext context, {required SingleUserChatModel data}) async { - data.voiceController!.stopPlayer(); + await data.voiceController!.pausePlayer(); notifyListeners(); }