Skip to content

fix: keep stored contact emails when Google Contacts sync runs - #89

Merged
VolodymyrLinuxovich merged 2 commits into
mainfrom
fix/contacts-sync-keeps-emails
Oct 31, 2026
Merged

VolodymyrLinuxovich merged 2 commits into
mainfrom
fix/contacts-sync-keeps-emails

Conversation

@VolodymyrLinuxovich

Copy link
Copy Markdown
Owner

Fixes #88

Summary

Google Contacts sync in contacts.ts now merges emails instead of replacing them. It looks up the stored contact by email first and then by provider id. Google addresses come first in the list. Stored addresses that Google does not have are kept after them. New contacts still get only the Google addresses.

This touches the same lookup as #85. A small merge may be needed if both land.

Validation

  • New tests in google-contacts-emails.test.ts. All three fail on main.
  • npm test passes.
  • npm run typecheck and lint pass.

@vercel

vercel Bot commented Oct 19, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
largevcmodel Ready Ready Preview Oct 31, 2026 11:45pm UTC

…ps-emails

# Conflicts:
#	src/lib/google/contacts.ts
@VolodymyrLinuxovich
VolodymyrLinuxovich merged commit af1ba1d into main Oct 31, 2026
5 of 6 checks passed

This branch was successfully deployed

1 active deployment
Preview — 31dd6566 Deployed Oct 31, 2026 by vercel[bot]
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.

Google Contacts sync drops stored contact emails

1 participant