Skip to content

Commit

Permalink
Merge pull request #1136 from tchapgouv/1135-activer-posthog-en-produ…
Browse files Browse the repository at this point in the history
…ction

Ajouter la configuration posthog pour vérifier la charge en production
  • Loading branch information
NicolasBuquet authored Dec 12, 2024
2 parents 433ea86 + d194d33 commit b9c9066
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Riot/Modules/Room/RoomDisplayConfiguration.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
10 changes: 5 additions & 5 deletions Tchap/Config/BuildSettings.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions changelog.d/1135.change
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Ajouter la configuration posthog pour vérifier la charge en production

0 comments on commit b9c9066

Please sign in to comment.