Skip to content

fix for #7729: show system nickname instead of first name in group sidebar preview#7780

Open
apurv3170 wants to merge 1 commit intosignalapp:mainfrom
apurv3170:fix/nickname-in-group-sidebar-preview
Open

fix for #7729: show system nickname instead of first name in group sidebar preview#7780
apurv3170 wants to merge 1 commit intosignalapp:mainfrom
apurv3170:fix/nickname-in-group-sidebar-preview

Conversation

@apurv3170
Copy link
Copy Markdown

@apurv3170 apurv3170 commented Mar 18, 2026

Contributor checklist:

  • My contribution is not related to translations.
  • My commits are in nice logical chunks with good commit messages
  • My changes are rebased on the latest main branch
  • A pnpm run ready run passes successfully (more about tests here)
  • My changes are ready to be shipped to users

Description

It fixes #7729 where the group chat sidebar shows a contact's first name instead of their system nickname, even though the nickname is correctly shown inside the group chat. (e.g. "John: Hello" instead of "Flash: Hello")

Root cause: When isShort: true (used for sidebar previews), the code fell back to systemGivenName (first name) even when systemNickname was set.

Fix: One line change in ts/util/getTitle.preload.ts where it prefers systemNickname over systemGivenName when isShort: true, making the sidebar consistent with the group chat view.

Note

I was unable to reproduce this locally as it requires macOS system contacts integration.
However, the fix is based on code analysis. It makes the short display consistent with getSystemName() which already prefers systemNickname correctly.

Happy to make changes if the maintainers spot anything wrong.

When isShort is true(used for sidebar conversation previews), the code
was falling back to systemGivenName(i.e. Contact's first name) even when a system
contact nickname was set. As a result, even when a system nickname was set, this caused group chat previews to show
'John: Hello' instead of 'Flash: Hello'.

Fix by preferring systemNickname over systemGivenName when isShort is
true, matching the behavior already used in the full name display and
consistent with how nicknames are shown inside the group chat itself.

Fixes: signalapp#7729
@trevor-signal trevor-signal self-assigned this Mar 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

In group chats, preview of most recent message does not use contact nickname

2 participants