Skip to content

Conversation

fhello23
Copy link
Contributor

@fhello23 fhello23 commented Jul 30, 2025

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

@fhello23
Copy link
Contributor Author

WhatsApp Image 2025-07-30 at 01 29 57

@gautier-benoit
Copy link

Nice one !

@callebtc
Copy link
Collaborator

callebtc commented Aug 5, 2025

cool

@callebtc callebtc added enhancement New feature or request complete Ready to merge UI/UX Improving interactions labels Aug 5, 2025
@callebtc
Copy link
Collaborator

callebtc commented Aug 5, 2025

thank you, great PR!

@callebtc callebtc merged commit 325ce17 into permissionlesstech:main Aug 5, 2025
@fhello23
Copy link
Contributor Author

fhello23 commented Aug 11, 2025 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
complete Ready to merge enhancement New feature or request UI/UX Improving interactions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants