Repository navigation
fix(groups): keep LID digits out of group panel names - #526
Merged
Merged
Conversation
The group info panel masked unnamed LID members only at the end of its name fallback chain. Migration 034 backfilled messages.sender_name with the bare LID local part for unmapped senders, so that value won first and the panel showed the opaque identity digits. Export getSafeIdentityName, the guard the contact profile already uses, and run every stored name in the panel chain through it, so a name that only restates the LID falls through to the masked label. Real names on LID members are kept. Fixes #382
setkyar
force-pushed
the
fix/group-panel-lid-names
branch
from
November 23, 2026 18:17
f9aea25 to
1aa6c25
Compare
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.
Fixes #382.
Problem
The group info panel only masked unnamed LID members at the very end of its name fallback chain. Migration 034 backfilled
messages.sender_namewith the bare LID digits for unmapped senders, so that value won first. The panel showed a member's raw WhatsApp ID digits instead of "WhatsApp user (ID …XXXX)".Fix
getSafeIdentityNamefrom@wateaminbox/shared. It is the guard the contact profile already uses.Tests
group-sync.integration.test.ts: a stored name that restates the LID digits no longer bypasses the mask.contact.test.ts: the guard rejects names that only restate an LID and keeps real names (and every name on a phone JID).main. Typecheck, biome and both suites pass on a fresh Postgres 18.Release
No migration.
worker: skip. The fix is in the API, not the web bundle.