Allow altering the output of a threads members autocomplete options

Created on 22 September 2024, 2 months ago

When selecting members of a thread, I would like to be able to use a different widget other than the private_message_thread_member_widget, which uses views as the entity reference source when choosing the members.

Is it possible to extend this module to do that, how would I go about doing it? I am unable to edit the field definition in the UI like I can for other entity reference fields.

If that is not possible, how can I go about altering the autocomplete query for the private_message_thread_member_widget

In addition to altering the users returned in the autocomplete, I want to be able to add the users picture along with the name in the output of autocomplete options.

Is this possible?

✨ Feature request
Status

Active

Version

3.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States loze Los Angeles

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @loze
  • πŸ‡ΊπŸ‡ΈUnited States loze Los Angeles

    To clarify, I'm trying to do two things here:

    1. display the users picture/avatar next to their name in the autocomplete dropdown
    2. alter the autocomplete query to further limit who someone is allowed to send a message to (for example only someone in a friends list)

    I figure the best way to do this is to use a custom view to supply the results of the autocomplete dropdown, but not sure the best way to go about doing this.

    any suggestions?

Production build 0.71.5 2024