Redundancy when adding a firestore document

Database & APIs

I'm creating a chat app and when I'm trying to create a chat with a user (e.g Joe) when I have an existing chat with Joe already

the app creates a new chat instead of opening the existing one

What have you tried so far?

I tried adding a condition to check if there's already a chat between the authenticated user and the selected user before creating a new one by adding filters but an error show up telling me i can't use more than one filter in a conditional action

Did you check FlutterFlow's Documentation for this topic?
Yes
1
1 reply