Hi everyone, I have trouble creating a new chat in my app. Let me try to break this down as much as humanleee possible.
1) I have a home page that should display a list of items from my home page. I have queried this list by "Query Collection - list of users". Now this list will display a list of users such that every user will have a button under their profile that says "Message".
...my app is a dating app.
2) Now, what I want to happen is that I would like to create a message between the "viewer" and the person on the list. However, in my app the person being viewed does appear more than once, or say, that person remains on the list regardless of whether there is a chat between the viewer and them.
I think of it like WhatsApp, when you search through your contacts, the person you have already messages still does appear even if they is an ongoing conversation between you.
3) The problem now is that I am unsure whether to set page parameters for the home page.
4) I have set a page state of friendsList - list of users - but I am unable to use it because it says "Variable is not available"
I am not sure how to manage to complete this.
The page that I want to send data to has the page parameter chatRef but when I have to pass this parameter from the home page, I can't.
I hope I did not confuse anyone.
Note: I am using the FlutterFlow 'Chat + Group w/bubbles' chat flow as part of my app build.