Skip to content

Commit

Permalink
fix return result from isMuted
Browse files Browse the repository at this point in the history
  • Loading branch information
posawatji authored Jul 13, 2023
1 parent e67fee3 commit 95e1acc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ios/Classes/SwiftFlutterCallkitIncomingPlugin.swift
Original file line number Diff line number Diff line change
Expand Up @@ -135,12 +135,12 @@ public class SwiftFlutterCallkitIncomingPlugin: NSObject, FlutterPlugin, CXProvi
case "isMuted":
guard let args = call.arguments as? [String: Any] ,
let callId = args["id"] as? String else{
result("OK")
result(false)
return
}
guard let callUUID = UUID(uuidString: callId),
let call = self.callManager.callWithUUID(uuid: callUUID) else {
result("OK")
result(false)
return
}
result(call.isMuted)
Expand Down

0 comments on commit 95e1acc

Please sign in to comment.