Fix autocomplete — infinite loop, missing API, auth

Fixkamo-internal
शिप
20 मार्च 2026 को 3:55 pm बजे UTC
लेखक
kamo
Commit
1e30896

Three root causes fixed: 1. Infinite re-render loop: existingEmails was a new array reference every render, causing the search useEffect to re-fire endlessly. Switched to a stable ref (existingEmailsRef). 2. Non-existent endpoint: /api/email/recent-recipients was never created. Replaced with real /api/email/search against the Sent folder, extracting To/CC addresses from results and matching against the query. 3. Missing OTK auth: email search requires X-OTK header. Added generateOTK() call before the sent-folder search request.

सभी बदलाव

जैसा कि आप शिपिंग देखते हैं?

इन अद्यतनों में से प्रत्येक स्वचालित रूप से अपने कार्यक्षेत्र में उतरता है। प्रारंभ करें और सप्ताह के बाद इसे सप्ताह के अंत में देखें।.

Foreverमूल्य निर्धारण देखें