making the convo show up if it's relevant and not bug while the convo is starting
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user