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:
parent
32c4712d5e
commit
74cc5abd09
3 changed files with 11 additions and 14 deletions
|
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue