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

Signed-off-by: fufesou <linlong1266@gmail.com>
This commit is contained in:
fufesou 2024-08-06 00:28:31 +08:00 committed by GitHub
parent b3e1c8a907
commit 2662abc5a3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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();