mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
register segment user when app is launched
This commit is contained in:
parent
44bfa600b9
commit
44fe6b4ef7
1 changed files with 4 additions and 0 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in a new issue