5. New Conversation w/ User (Parameter)
Last updated
Last updated
Users can click the Text Button Send Message (or Edit Profile)
element on a fellow User's profile page to potentially start a new Conversation.
This Text Button Send Message (or Edit Profile)
button is located here on desktop:
It responsively moves to here on mobile:
And in the editor it is here:
When the Text Button Send Message (or Edit Profile)
element is clicked, and the Current User is trying to send a Message to a friend, the Current User will be navigated to the messages page, with two additional parameters:
v = new (this shows the FG - Create New Conversation
element once the messages page is loaded)
u = [the unique ID of the person who the Current User would like to message]
When the messages page is loaded, the FG - Create New Conversation
element is shown automatically, and the "u" parameter User is automatically added to the "Selected Recipients" custom state (type: User, list: yes). (This custom state stores the list of Users who the Current User wants to start a Conversation with):
This way, the Current User can immediately start typing their new Message when the messages page is loaded. An existing Conversation will be displayed if there is one between the Current User and the selected User(s).
Note: When the Current User is viewing their own profile, this Text Button Send Message (or Edit Profile)
button turns into an "Edit Profile" button (so the Current User doesn't message themselves). When this button turns into the "Edit Profile" button, it navigates the Current User to the account page.