Commit 11fbd32a authored by Kateryna Kostiuk's avatar Kateryna Kostiuk

fix: call state change

fix possible crash during call

Change-Id: Ib4080890da79bba975f6c2cecb3ffcd31a7de732
parent 89cc9656
......@@ -231,7 +231,7 @@ class CallsService: CallsAdapterDelegate {
if let callDictionary = self.callsAdapter.callDetails(withCallId: callId) {
//Add or update new call
var call = self.calls[callId]
call?.state = CallState(rawValue: state)!
call?.state = CallState(rawValue: state) ?? CallState.unknown
//Remove from the cache if the call is over and save message to history
if call?.state == .over || call?.state == .failure {
var time = 0.00
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment