Add @mentions autocomplete in group chat compose#125
Draft
Conversation
Co-authored-by: adbenitez <24558636+adbenitez@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add @mentions support for message drafting
Add @mentions autocomplete in group chat compose
Feb 21, 2026
Collaborator
|
@copilot in the completion list the avatar of the contacts should also be displayed at the start in front of the name |
Co-authored-by: adbenitez <24558636+adbenitez@users.noreply.github.com>
Contributor
Author
Done in d8ba265. Each suggestion row now shows a circular avatar (32dp) before the contact name, loaded via Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When drafting a message in a group chat, typing
@now shows an inline autocomplete list of group members filtered in real-time as you continue typing. Selecting a suggestion inserts@DisplayNameat the cursor position.Changes
conversation_activity.xml— Added aRecyclerView(mention_suggestions) above the input panel, hidden by defaultmention_list_item.xml(new) — List item layout showing a circular contact avatar, member display name, and email addressMentionAdapter.java(new) — RecyclerView adapter backing the suggestion list; loads contact avatars viaAvatarImageViewand Glide; exposesOnMentionClickListenerfor selection callbacksConversationActivity.java:updateMentionSuggestions()— runs on everyafterTextChanged, detects@<query>before the cursor, filters chat members by display name or address, shows/hides the listinsertMention(DcContact)— replaces the@<query>span with@DisplayNameand advances the cursordcChat.isMultiUser()); list hides when a space/newline follows@or no members matchExample flow
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.