Skip to content

fix(notifications): direct photo stream fallback when PHOTO_URI unavailable#846

Merged
bmc08gt merged 1 commit into
code/cashfrom
fix/notification-contact-freshness
Jun 4, 2026
Merged

fix(notifications): direct photo stream fallback when PHOTO_URI unavailable#846
bmc08gt merged 1 commit into
code/cashfrom
fix/notification-contact-freshness

Conversation

@bmc08gt

@bmc08gt bmc08gt commented Jun 4, 2026

Copy link
Copy Markdown
Collaborator

PhoneLookup.PHOTO_URI can be null when the contacts provider hasn't finished indexing a newly added contact's photo. Fall back to openContactPhotoInputStream which reads the raw photo blob by contact ID and doesn't depend on PHOTO_URI being populated.

Also iterate all PhoneLookup rows instead of only the first, since linked contacts can return multiple rows where only one has a photo.

…ilable

PhoneLookup.PHOTO_URI can be null when the contacts provider hasn't
finished indexing a newly added contact's photo. Fall back to
openContactPhotoInputStream which reads the raw photo blob by contact ID
and doesn't depend on PHOTO_URI being populated.

Also iterate all PhoneLookup rows instead of only the first, since
linked contacts can return multiple rows where only one has a photo.

Signed-off-by: Brandon McAnsh <git@bmcreations.dev>
@bmc08gt bmc08gt self-assigned this Jun 4, 2026
@github-actions github-actions Bot added type: fix Bug fix area: notifications Push notifications, in-app messaging and removed type: fix Bug fix labels Jun 4, 2026
@bmc08gt bmc08gt merged commit 37a7dfd into code/cash Jun 4, 2026
3 checks passed
@bmc08gt bmc08gt deleted the fix/notification-contact-freshness branch June 4, 2026 17:32
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant