mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-12-11 18:47:47 +00:00
fix: android prompt "Failed to stop voice call" on conn ended (#8434)
* fix: android prompt "Failed to stop voice call" on conn ended Signed-off-by: fufesou <linlong1266@gmail.com> * Remove invalid comment Signed-off-by: fufesou <linlong1266@gmail.com> * Better control of voice call status Signed-off-by: fufesou <linlong1266@gmail.com> * Better voice call status control Signed-off-by: fufesou <linlong1266@gmail.com> * better end conn for voice call Signed-off-by: fufesou <linlong1266@gmail.com> --------- Signed-off-by: fufesou <linlong1266@gmail.com>
This commit is contained in:
@@ -535,6 +535,8 @@ class ChatModel with ChangeNotifier {
|
||||
void onVoiceCallClosed(String reason) {
|
||||
_voiceCallStatus.value = VoiceCallStatus.notStarted;
|
||||
if (isAndroid) {
|
||||
// We can always invoke "on_voice_call_closed"
|
||||
// no matter if the `_voiceCallStatus` was `VoiceCallStatus.notStarted` or not.
|
||||
parent.target?.invokeMethod("on_voice_call_closed");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user