updating in the right spots

This commit is contained in:
talksik
2021-12-28 15:29:03 -08:00
parent 6a0622f47a
commit fa0024eafa
5 changed files with 54 additions and 1 deletions
@@ -135,11 +135,16 @@ struct InnerCircleView: View {
}
.onAppear {
// activate 3 data listeners once for authsessionstore/usermanager if not already called, but authsessionstore will handle that
// TODO: can/should do this on init of view model
self.authSessionStore.activateMainDataListeners()
// set up push notifications and such + save up to date device token
// TODO: this is firing too often?
self.innerCircleVM.setUpPushNotifications()
// set status of user to online
self.authSessionStore.updateUserStatus(userStatus: .online)
}
// .onDisappear {
// print("deiniting data listeners, but current data should still be cached!")