Custom Action Built on Flutterflow Chats

Hey all,

Trying to wrap my head around this, but not sure how to actually code it. Basically, I am using the Flutterflow chats in my app, which is working out of the box.

However, I am trying to restrict users from being able to see/message other people in our app (this is a private chat with us.) As such, I have removed the 'new chat' button for regular users.

Because of this, I now need to create an action to automatically send a message from our admin account to the new user, otherwise they will not have the ability to message with us.

I've done some research and I think this would be accomplished by following this doc: https://firebase.google.com/docs/firestore/manage-data/add-data#dart_1

That said, I am really confused on how the backend of flutterflow chats actually work, and I cant find any documentation on how how all of the chats/chat_messages firestore collections & their data actually tie into each other.

Does anyone have any advice on how I could put this together, or perhaps a better way to restrict users to only being able to chat with us only? If not, any advice on how the backend of the chats actually work would be hugely helpful. I think I could probably hack something together if I had more clarity on that.

TIA!

1
7 replies