getting proper listener activation instead of having 100 listeners on

also brute force log out navigation as it's not working

fixing little things here and there and getting organized
This commit is contained in:
talksik
2021-12-23 23:51:17 -08:00
parent aafe544e71
commit 4b2208eae6
4 changed files with 77 additions and 24 deletions
@@ -116,7 +116,7 @@ struct InnerCircleView: View {
Button {
self.alertActive.toggle()
self.alertText = "👆🏼It's simple!"
self.alertSubtext = "Press and hold to send a message. \n Tap to listen!"
self.alertSubtext = "Press and hold on a friend to send a message. \n Tap on them to listen!"
} label: {
Label("help!🙉", systemImage: "questionmark.circle")
.font(.caption)
@@ -139,6 +139,18 @@ struct InnerCircleView: View {
} message: {
Text(self.alertSubtext)
}
.onAppear {
// activate 3 data listeners once for authsessionstore/usermanager if not already called, but authsessionstore will handle that
self.authSessionStore.activateMainDataListeners()
// save device token
}
// .onDisappear {
// print("deiniting data listeners, but current data should still be cached!")
//
// // deactivate all data listeners
// self.authSessionStore.deinitDataListeners()
// }
}
}