I'm trying to set up an if-then action in my FlutterFlow project for a messaging feature. Here's what I need:
If a messaging document already exists between two users for a specific post, then navigate to that existing chat document.
If not, then create a new messaging document.
The problem i have with my current action is it displays the same chat for every user.