Skip to content

An open-source remote desktop application designed for self-hosting, as an alternative to TeamViewer.

fix: reset voice call state, on conn (#8961)

fufesou2662abc5a39b
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<String, dynamic> 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();