Skip to content

Make the sender avatar menu accessible to screen readers - #2045

Open
mehranlatifi83 wants to merge 1 commit into
DrKLO:masterfrom
mehranlatifi83:fix/talkback-sender-avatar-menu
Open

mehranlatifi83 wants to merge 1 commit into
DrKLO:masterfrom
mehranlatifi83:fix/talkback-sender-avatar-menu

Conversation

@mehranlatifi83

@mehranlatifi83 mehranlatifi83 commented Aug 30, 2026 •

Copy link
Copy Markdown

Problem

Long pressing a sender's avatar in a group opens a menu: open profile, send message, mention, search their messages. The avatar is drawn by the cell and is not a view, so TalkBack cannot reach this menu at all.

Fix

In ChatMessageCell and ChatActivity, add an accessibility action on the message that opens this menu through the same code path as the long press on the avatar. It is only offered when the sender has a profile photo, because the menu is anchored to the photo and does not open without one.

Long pressing the message itself still selects it, as before.

Testing

With TalkBack on, in a group, swipe onto a message from someone with a profile photo and open the actions.

Before: the avatar menu could not be reached. After: an action opens it with the same four options.

@mehranlatifi83
mehranlatifi83 force-pushed the fix/talkback-sender-avatar-menu branch 2 times, most recently from f35c359 to 1015fa3 Compare September 2, 2026 14:11
@mehranlatifi83
mehranlatifi83 force-pushed the fix/talkback-sender-avatar-menu branch from 1015fa3 to 9acf521 Compare September 18, 2026 09:50
@mehranlatifi83
mehranlatifi83 force-pushed the fix/talkback-sender-avatar-menu branch from 9acf521 to a09eeb3 Compare September 27, 2026 10:45
The avatar of whoever sent a message opens a menu when it is held down:
their profile, a chat with them, a mention of them, and a search of what
they have said here. The avatar is drawn by the cell and is no view of
its own, so touch exploration had nothing to hold and none of it could be
reached.

Offer the same menu as an action on the message, held down the way it is
asked to be, so whatever the menu comes to hold is come by the same way
it is by everyone else.

Whether holding the avatar leads anywhere is for the chat to answer: it
opens in a group and in a chat with yourself, and nowhere else. A sender
with no picture still has the menu, only without the picture drawn above
it, so the action follows that rather than the picture.
@mehranlatifi83
mehranlatifi83 force-pushed the fix/talkback-sender-avatar-menu branch 2 times, most recently from a5d94af to db7a13b Compare October 1, 2026 23:01
@mehranlatifi83 mehranlatifi83 changed the title Reach the menu behind the avatar of a sender Oct 1, 2026
@mehranlatifi83
mehranlatifi83 force-pushed the fix/talkback-sender-avatar-menu branch from db7a13b to be405fe Compare October 13, 2026 11:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant