making the convo show up if it's relevant and not bug while the convo is starting

This commit is contained in:
talksik
2022-01-01 22:32:07 -08:00
parent 4a74ecb7eb
commit 433de5224a
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -224,7 +224,7 @@ extension AuthSessionStore {
// TODO: THIS WON'T UPDATE VIEW since user is a reference type...can manually publish...research and learn more
self.firestoreService.getUserRealtime(userId: currUserId!) {[weak self] realtimeUpdatedUser in
if realtimeUpdatedUser != nil {
print("up to date user: \(realtimeUpdatedUser)")
print("up to date user")
self?.user = realtimeUpdatedUser
self?.objectWillChange.send()
@@ -127,7 +127,7 @@ class ConvoViewModel: NSObject, ObservableObject {
let relevancyScore = Double(relevancyCount) / Double(convo.users.count)
print("relevancy score: \(relevancyScore)")
if relevancyScore > Self.relevancyAcceptance {
if relevancyScore > Self.relevancyAcceptance && convo.users.count > 1 { //offchance that it's just the one person in the convo right now, don't want to see it until there are at least 2 people
print("this convo counts as relevant!!!")
return true
}