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.
Description
This PR implements the mention autocomplete feature for the Android version of bitchat, bringing it to parity with the iOS version. Users can now type "@" followed by a few characters to see a list of connected users they can mention in their messages.
Features Added
Mention Autocomplete Suggestions
When typing "@" in the chat input, a suggestions box appears showing connected users
Suggestions are filtered based on the typed characters (e.g., "@jo" shows users whose nicknames start with "jo")
Clicking on a suggestion inserts the mention at the current cursor position
Visual Mentions Highlighting
Mentions are visually highlighted in orange in the chat input field
Mentions in received messages are also highlighted consistently with iOS styling
Both slash commands and mentions can be styled simultaneously
Context-Aware Mention Insertion
Mentions are inserted at the cursor position without replacing existing text
Works correctly even when typing in the middle of a sentence
Checklist