chore: Update SDK

This commit is contained in:
Christian Pauly 2022-06-20 15:35:22 +02:00
commit 24ee341670
12 changed files with 94 additions and 46 deletions

View file

@ -11,7 +11,7 @@ import 'package:fluffychat/utils/voip_plugin.dart';
class CallKeeper {
CallKeeper(this.callKeepManager, this.uuid, this.number, this.call) {
call?.onCallStateChanged.listen(_handleCallState);
call?.onCallStateChanged.stream.listen(_handleCallState);
}
CallKeepManager callKeepManager;
@ -119,12 +119,12 @@ class CallKeepManager {
await displayIncomingCall(call);
call.onCallStateChanged.listen((state) {
call.onCallStateChanged.stream.listen((state) {
if (state == CallState.kEnded) {
_callKeep.endAllCalls();
}
});
call.onCallEventChanged.listen((event) {
call.onCallEventChanged.stream.listen((event) {
if (event == CallEvent.kLocalHoldUnhold) {
Logs().i(
'Call hold event: local ${call.localHold}, remote ${call.remoteOnHold}');