From 2662abc5a39b25d76568f3278de1fb4fd62b59b0 Mon Sep 17 00:00:00 2001 From: fufesou <13586388+fufesou@users.noreply.github.com> Date: Tue, 6 Aug 2024 00:28:31 +0800 Subject: [PATCH] fix: reset voice call state, on conn (#8961) Signed-off-by: fufesou --- flutter/lib/models/model.dart | 2 ++ 1 file changed, 2 insertions(+) diff --git a/flutter/lib/models/model.dart b/flutter/lib/models/model.dart index cf93fde42..155103776 100644 --- a/flutter/lib/models/model.dart +++ b/flutter/lib/models/model.dart @@ -723,6 +723,8 @@ class FfiModel with ChangeNotifier { /// Handle the peer info event based on [evt]. handlePeerInfo(Map evt, String peerId, bool isCache) async { + parent.target?.chatModel.voiceCallStatus.value = VoiceCallStatus.notStarted; + // This call is to ensuer the keyboard mode is updated depending on the peer version. parent.target?.inputModel.updateKeyboardMode();