From f7ad67390aaa2a4973dceb492dc8844ab264c50d Mon Sep 17 00:00:00 2001 From: Christophe Deschamps Date: Wed, 16 Nov 2022 11:37:13 +0100 Subject: [PATCH] Fix PQ Call Stats --- Classes/Swift/Voip/Views/Fragments/CallStatsView.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Classes/Swift/Voip/Views/Fragments/CallStatsView.swift b/Classes/Swift/Voip/Views/Fragments/CallStatsView.swift index eb3f47718..44ea5aa54 100644 --- a/Classes/Swift/Voip/Views/Fragments/CallStatsView.swift +++ b/Classes/Swift/Voip/Views/Fragments/CallStatsView.swift @@ -98,15 +98,15 @@ import linphonesw } videoStats.text = stats - if let lc = model.call.core { + if let mediaEncryption = model.call.currentParams?.mediaEncryption { stats = "" - switch (lc.mediaEncryption) { + switch (mediaEncryption) { case MediaEncryption.None: stats += "\nNone" case MediaEncryption.SRTP: stats += "\nSRTP" case MediaEncryption.DTLS: stats += "\nDTLS" case MediaEncryption.ZRTP: if let callstats = model.call.audioStats { - stats += (model.call.audioStats?.isZrtpKeyAgreementAlgoPostQuantum ?? false) ?"\nZRTP" : "\nPost Quantum ZRTP" + stats += callstats.isZrtpKeyAgreementAlgoPostQuantum ? "\nPost Quantum ZRTP" : "\nZRTP" stats += "\nCipher algorithm: \(callstats.zrtpCipherAlgo)" stats += "\nKey agreement algorithm: \(callstats.zrtpKeyAgreementAlgo)" stats += "\nHash algorithm: \(callstats.zrtpHashAlgo)"