register segment user when app is launched
This commit is contained in:
@ -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()
|
||||
|
||||
Reference in New Issue
Block a user