updating in the right spots
This commit is contained in:
@@ -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!")
|
||||
|
||||
Reference in New Issue
Block a user