Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ajouter la configuration posthog pour vérifier la charge en production #1136

Merged
merged 1 commit into from
Dec 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading