9946c6c4bd
- When user switches folders quickly, syncFolder(A) callback fires after user already selected B - loadMails() was called with stale selectedFolderId, loading wrong mails - Add useRef to track current folder ID, only reload if still on same folder - Also fix backend: message_id dedup now only within same folder (not cross-folder)