mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-19 16:13:42 +02:00
Don't read analytics opt in status from account data.
Update PostHog to 1.4.3. Add tests for prompt type.
This commit is contained in:
@@ -2252,7 +2252,7 @@ TableViewSectionsDelegate>
|
||||
MXKTableViewCellWithLabelAndSwitch* sendCrashReportCell = [self getLabelAndSwitchCell:tableView forIndexPath:indexPath];
|
||||
|
||||
sendCrashReportCell.mxkLabel.text = VectorL10n.settingsAnalyticsAndCrashData;
|
||||
sendCrashReportCell.mxkSwitch.on = Analytics.shared.isRunning;
|
||||
sendCrashReportCell.mxkSwitch.on = RiotSettings.shared.enableAnalytics;
|
||||
sendCrashReportCell.mxkSwitch.onTintColor = ThemeService.shared.theme.tintColor;
|
||||
sendCrashReportCell.mxkSwitch.enabled = YES;
|
||||
[sendCrashReportCell.mxkSwitch addTarget:self action:@selector(toggleAnalytics:) forControlEvents:UIControlEventTouchUpInside];
|
||||
@@ -3125,7 +3125,7 @@ TableViewSectionsDelegate>
|
||||
else
|
||||
{
|
||||
MXLogDebug(@"[SettingsViewController] disable automatic crash report and analytics sending");
|
||||
[Analytics.shared optOutWith:self.mainSession];
|
||||
[Analytics.shared optOut];
|
||||
|
||||
// Remove potential crash file.
|
||||
[MXLogger deleteCrashLog];
|
||||
|
||||
Reference in New Issue
Block a user