From d194d334ff4e95d69b6d01fd1cd631932ab1e71a Mon Sep 17 00:00:00 2001 From: Nicolas Buquet Date: Wed, 11 Dec 2024 16:02:42 +0100 Subject: [PATCH] =?UTF-8?q?Ajouter=20la=20configuration=20posthog=20pour?= =?UTF-8?q?=20v=C3=A9rifier=20la=20charge=20en=20production?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Riot/Modules/Room/RoomDisplayConfiguration.swift | 2 +- Tchap/Config/BuildSettings.swift | 10 +++++----- changelog.d/1135.change | 1 + 3 files changed, 7 insertions(+), 6 deletions(-) create mode 100644 changelog.d/1135.change diff --git a/Riot/Modules/Room/RoomDisplayConfiguration.swift b/Riot/Modules/Room/RoomDisplayConfiguration.swift index 2031dc35b..349e49f83 100644 --- a/Riot/Modules/Room/RoomDisplayConfiguration.swift +++ b/Riot/Modules/Room/RoomDisplayConfiguration.swift @@ -18,7 +18,7 @@ class RoomDisplayConfiguration: NSObject { guard _tchapCallsEnabled, let account = MXKAccountManager.shared().activeAccounts.first else { return false } - // Tchap: actually, only allow VoIP for DINUM homeServer. + // Tchap: actually, only allow VoIP by homeServer. if (account.isFeatureActivated(BuildSettings.tchapFeatureVoiceOverIP) || account.isFeatureActivated(BuildSettings.tchapFeatureVideoOverIP)) { return true } diff --git a/Tchap/Config/BuildSettings.swift b/Tchap/Config/BuildSettings.swift index 6b12e99f4..90ff8ec65 100644 --- a/Tchap/Config/BuildSettings.swift +++ b/Tchap/Config/BuildSettings.swift @@ -209,12 +209,12 @@ final class BuildSettings: NSObject { termsURL: URL(string: "https://tchap.beta.gouv.fr/politique-de-confidentialite")!) // Tchap: dev posthog, #else /// The configuration to use for analytics. Set `isEnabled` to false to disable analytics. - static let analyticsConfiguration = AnalyticsConfiguration(isEnabled: false, - host: "", - apiKey: "", - termsURL: URL(string: "https://")!) + static let analyticsConfiguration = AnalyticsConfiguration(isEnabled: true, // Tchap: enable PostHog analytics on production + host: "https://posthogdev.tchap.incubateur.net", // Tchap: prod posthog, + apiKey: "phc_FFa4pkvmuWjF9nZOMmYJWUXMibuYnCnPyf3DqPGZs4L", // Tchap: prod posthog, + termsURL: URL(string: "https://tchap.beta.gouv.fr/politique-de-confidentialite")!) #endif - + // MARK: - Bug report static let bugReportEndpointUrlString = "" static let bugReportDefaultHost = "agent.tchap.gouv.fr" diff --git a/changelog.d/1135.change b/changelog.d/1135.change new file mode 100644 index 000000000..4fb1c097d --- /dev/null +++ b/changelog.d/1135.change @@ -0,0 +1 @@ +Ajouter la configuration posthog pour vérifier la charge en production \ No newline at end of file