register segment user when app is launched

This commit is contained in:
Satindar Dhillon
2022-04-28 16:29:22 -07:00
parent 44bfa600b9
commit 44fe6b4ef7

View File

@ -22,6 +22,10 @@ public final class RootViewModel: ObservableObject {
public init() {
registerFonts()
if let viewer = services.dataService.currentViewer {
EventTracker.registerUser(userID: viewer.unwrappedUserID)
}
#if DEBUG
if CommandLine.arguments.contains("--uitesting") {
services.authenticator.logout()