mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-17 23:18:27 +02:00
MESSENGER-4101 matomo consent changes
This commit is contained in:
@@ -48,7 +48,7 @@ struct DeveloperSettingsView: View {
|
||||
Alert(title: Text(BWIL10n.bwiSettingsDeveloper), dismissButton: .default(Text("Ok")))
|
||||
}
|
||||
|
||||
Button(action: { showAlert = resetMatomoInfoScreen() }) {
|
||||
Button(action: { showAlert = resetMatomoInfoScreen(mxSession: session) }) {
|
||||
Text(BWIL10n.bwiSettingsDeveloperResetMatomoInfo)
|
||||
.foregroundColor(Color(ThemeService.shared().theme.tintColor))
|
||||
.font(.system(size: 17))
|
||||
@@ -122,8 +122,12 @@ fileprivate func createNewPersonalNotesRoom(mxSession: MXSession?) -> Bool {
|
||||
return true
|
||||
}
|
||||
|
||||
fileprivate func resetMatomoInfoScreen() -> Bool {
|
||||
BWIAnalytics.sharedTracker.setPromtShown(false)
|
||||
fileprivate func resetMatomoInfoScreen(mxSession: MXSession?) -> Bool {
|
||||
guard let mxSession = mxSession else {
|
||||
return false
|
||||
}
|
||||
// FRROT
|
||||
BWIAnalyticsAccountDataService(mxSession: mxSession)
|
||||
return true
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user