Add analytics to activity toggles (#12418)

* Add analytics to activity toggles

Requires https://github.com/matrix-org/matrix-analytics-events/pull/101

* Add test

* Fix comment a bit

* Update to new analytics events package
This commit is contained in:
David Baker 2024-04-22 17:15:29 +01:00 committed by GitHub
parent 6dd6a7697c
commit 427be433d0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 86 additions and 31 deletions

View file

@ -47,6 +47,7 @@ import ServerSupportUnstableFeatureController from "./controllers/ServerSupportU
import { WatchManager } from "./WatchManager";
import { CustomTheme } from "../theme";
import SettingsStore from "./SettingsStore";
import AnalyticsController from "./controllers/AnalyticsController";
export const defaultWatchManager = new WatchManager();
@ -597,11 +598,13 @@ export const SETTINGS: { [setting: string]: ISetting } = {
displayName: _td("settings|showbold"),
default: false,
invertedSettingName: "feature_hidebold",
controller: new AnalyticsController("WebSettingsNotificationsShowBoldToggle"),
},
"Notifications.tac_only_notifications": {
supportedLevels: LEVELS_DEVICE_ONLY_SETTINGS_WITH_CONFIG,
displayName: _td("settings|tac_only_notifications"),
default: true,
controller: new AnalyticsController("WebSettingsNotificationsTACOnlyNotificationsToggle"),
},
"feature_ask_to_join": {
isFeature: true,