I’ve been able to implement an in-app messaging feature, but I can’t seem to figure out how to limit the messages in the actual chat box to specific chat-room messages, meaning the user’s see all chat messages.
Data breakdown:
I have a page that has data sourced to: “current booking page …”
Then I have a group that data sourced to “chat”:
Then I have a repeating group that data sourced to that specific chat:
While privacy roles are one way of solving it, you may want to take a look at the structure of your database to resolve the structural issue.
If you have the notion of Chat Rooms (that are associated with a specific Booking), then you should have two separate tables in your database (or use “Booking” as the host).
Table 1: Chat Room: contains a list of Messages.
Table 2: Message: parent chat.
So, with every booking, you can create a Chatroom (or Conversation); a 1:1 association. Then, when a user is sending a message, you first, create a new “Message”, and your next workflow is to “Add results of Step 1 to Chat Room’s Messages”.
Then, when you are displaying data in the repeating group, your data source is Booking’s Chatroom’s List of Messages.