getting it sort of working but have a freeze

This commit is contained in:
talksik
2022-01-03 18:24:00 -08:00
parent e043c5a745
commit b77ae21973
3 changed files with 71 additions and 26 deletions
@@ -368,10 +368,15 @@ struct CircleGridView: View {
}
self.animateLiveConvos = true
}// univseral alert TODO: move to inner circle view and use this pattern for all view models
// .alert(item: self.$convoVM.error) {error in
// error.alert
// }
}
.onReceive(self.authSessionStore.$messagesArr) {_ in
// TODO: don't know if this fires if I am active and I receive a message but that's not something I am allowing right now with the continuous convo feature
print("new messages found!!!! on receive going to cache all messages to load them faster for you!")
// TODO: might be including messages of inbox users? overloading memory?
self.innerCircleVM.cacheIncomingMessages(friendMessagesDict: self.authSessionStore.relevantMessagesByUserDict)
}
} // scrollview reader
}