Old solution still work. start from data: Data Structure

Go to the Data tab and set up:

  1. Conversation:
  • Participants (List of User): Users in the conversation.
  • Messages (List of Message): Messages linked to this conversation.
  1. Message:
  • Content (text): The text of the message.
  • Creator (default field): Automatically tracks who sent the message.
  • Conversation (Conversation): Links the message to its conversation.
  1. User:
  • Conversations (List of Conversation): Tracks conversations the user is part of.

UI Setup

  1. Conversations List:
  • Add a Repeating Group to show all conversations for the current user.
  • Data source: Do a Search for Conversations where Current User is in Participants.
  • Display: Show the name(s) of other participants (e.g., a dynamic text field).
  1. Messages View:
  • Add another Repeating Group to display messages for the selected conversation.
  • Data source: Current Page's Conversation's Messages.
  • Display: Message Content and Creator.
  1. Message Input:
  • Add a Multiline Input for entering the message.
  • Add a Send Button to trigger sending.