Skip to content

Commit

Permalink
feat(SettingsThreadModeView): Add Matomo settings thread mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Lnamw committed Oct 9, 2023
1 parent 5458c86 commit b29592d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Mail/Views/Settings/General/SettingsThreadModeView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

import InfomaniakCoreUI
import InfomaniakDI
import MailCore
import MailResources
import SwiftUI
Expand Down Expand Up @@ -46,6 +48,8 @@ struct SettingsThreadModeView: View {
isLast: value == ThreadMode.allCases.last
) {
if value != selectedValue {
@InjectService var matomo: MatomoUtils
matomo.track(eventWithCategory: .settingsThreadMode, name: value.rawValue)
threadModeSettingUpdate = ThreadModeSettingUpdate(newSetting: value)
}
}
Expand Down
1 change: 1 addition & 0 deletions MailCore/Utils/Matomo+Extension.swift
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ public extension MatomoUtils.EventCategory {
static let settingsTheme = MatomoUtils.EventCategory(displayName: "settingsTheme")
static let settingsSend = MatomoUtils.EventCategory(displayName: "settingsSend")
static let settingsSwipeActions = MatomoUtils.EventCategory(displayName: "settingsSwipeActions")
static let settingsThreadMode = MatomoUtils.EventCategory(displayName: "settingsThreadMode")
static let settingsDisplayExternalContent = MatomoUtils.EventCategory(displayName: "settingsDisplayExternalContent")
}

Expand Down

0 comments on commit b29592d

Please sign in to comment.