Skip to content

fix(notifications): resolve contact info from chat ID when group key is not E.164#902

Merged
bmc08gt merged 1 commit into
code/cashfrom
fix/push-contact-resolution
Jun 15, 2026
Merged

fix(notifications): resolve contact info from chat ID when group key is not E.164#902
bmc08gt merged 1 commit into
code/cashfrom
fix/push-contact-resolution

Conversation

@bmc08gt

@bmc08gt bmc08gt commented Jun 15, 2026

Copy link
Copy Markdown
Collaborator

The backend changed group_key from an E.164 phone number to a base64-encoded chat ID. This caused applyContactChatStyle to produce an empty sender name and no contact photo, since the E.164 extraction (startsWith("+")) failed silently.

Fall back to contactCoordinator.lookupContactByDmChatId to recover the sender's E.164 from the local contact mapping, restoring name resolution, photo loading, and formatted phone fallback.

…is not E.164

The backend changed group_key from an E.164 phone number to a base64-encoded chat ID. This caused applyContactChatStyle to produce an empty sender name and no contact photo, since the E.164 extraction (startsWith("+")) failed silently.

Fall back to contactCoordinator.lookupContactByDmChatId to recover the sender's E.164 from the local contact mapping, restoring name resolution, photo loading, and formatted phone fallback.

Signed-off-by: Brandon McAnsh <git@bmcreations.dev>
@bmc08gt bmc08gt self-assigned this Jun 15, 2026
@bmc08gt bmc08gt merged commit d0b18bb into code/cash Jun 15, 2026
3 checks passed
@github-actions github-actions Bot added area: notifications Push notifications, in-app messaging type: fix Bug fix labels Jun 15, 2026
@bmc08gt bmc08gt deleted the fix/push-contact-resolution branch June 15, 2026 16:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: notifications Push notifications, in-app messaging type: fix Bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant