Migrate doug/5035_posthog from MatrixKit.

This commit is contained in:
Doug
2021-12-07 12:29:02 +00:00
parent b3194a0fe9
commit 0815a84fb3
5 changed files with 13 additions and 48 deletions
+9 -7
View File
@@ -161,8 +161,15 @@ extension Analytics {
/// Track whether the user accepted or declined the terms to an identity server.
/// **Note** This method isn't currently implemented.
/// - Parameter granted: Pass `true` for accepted and `false` for declined.
func trackIdentityServerAccepted(granted: Bool) {
/// - Parameter accepted: Whether the terms were accepted.
func trackIdentityServerAccepted(_ accepted: Bool) {
// Do we still want to track this?
}
/// Track whether the user granted or rejected access to the device contacts.
/// **Note** This method isn't currently implemented.
/// - Parameter granted: Whether access was granted.
func trackContactsAccessGranted(_ granted: Bool) {
// Do we still want to track this?
}
}
@@ -196,11 +203,6 @@ extension Analytics: MXAnalyticsDelegate {
capture(event: event)
}
/// **Note** This method isn't currently implemented.
func trackContactsAccessGranted(_ granted: Bool) {
// Do we still want to track this?
}
func trackCreatedRoom(asDM isDM: Bool) {
let event = AnalyticsEvent.CreatedRoom(isDM: isDM)
capture(event: event)