From de189c199a2cb4e5b8582cd032f2ced039bef47b Mon Sep 17 00:00:00 2001 From: talksik Date: Tue, 4 Jan 2022 10:33:10 -0800 Subject: [PATCH] increasing limit nad improving wording --- nirvana-ios/Services/AuthSessionStore.swift | 2 +- nirvana-ios/Views/InnerCircle/CircleNavigationView.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/nirvana-ios/Services/AuthSessionStore.swift b/nirvana-ios/Services/AuthSessionStore.swift index f0f25b2..3cae296 100644 --- a/nirvana-ios/Services/AuthSessionStore.swift +++ b/nirvana-ios/Services/AuthSessionStore.swift @@ -366,7 +366,7 @@ extension AuthSessionStore { // limit: because each user should have most 12 friends and so would at most need 24 messages to show turns and all that...save myself from hackers here...unless a user gets 100 messages from someone, and that too at least they will be ordered // SOLUTION: composite with array - let messagesListener = db.collection("messages").whereField("senderIdReceiverIdComposite", arrayContains: currUserId).order(by: "sentTimestamp", descending: true).limit(to: 100) + let messagesListener = db.collection("messages").whereField("senderIdReceiverIdComposite", arrayContains: currUserId).order(by: "sentTimestamp", descending: true).limit(to: 500) .addSnapshotListener { querySnapshot, error in print("messages listener activated") diff --git a/nirvana-ios/Views/InnerCircle/CircleNavigationView.swift b/nirvana-ios/Views/InnerCircle/CircleNavigationView.swift index da2a023..082a92c 100644 --- a/nirvana-ios/Views/InnerCircle/CircleNavigationView.swift +++ b/nirvana-ios/Views/InnerCircle/CircleNavigationView.swift @@ -169,7 +169,7 @@ struct CircleNavigationView: View { self.innerCircleVM.toast = .remoteWorkPreview } label: { - Label("work", systemImage: "suitcase") + Label("teams", systemImage: "suitcase") .font(.caption2) .foregroundColor(Color.gray) .padding(.vertical, 10)