increasing limit nad improving wording

This commit is contained in:
talksik
2022-01-04 10:33:10 -08:00
parent 2893154d6f
commit de189c199a
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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")
@@ -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)