KamoCRM

Pass selectedFolder to ThreadDetailView so email:folder-changed fires with a valid folder

Fixkamo-internal
Shipped
26 ஏப்ரல், 2026 அன்று 3:43 AM UTC
Author
kamo
Commit
f340b06

conversation.folder is always undefined because the Java ConversationEntity has folderIds (text[]) not a folder string field. This caused loadThread to call markConversationRead and then dispatch email:folder-changed with folder:undefined. The undefined caused a TypeError inside the .then() callback (folder.toLowerCase()) which was caught by .catch(()=>{}) and silently killed the mark-as-read success chain. Fix: pass selectedFolder from MessageBrowser as a folder prop into ThreadDetailView and use it in the loadThread call. Also guard the email:folder-changed handler with a null check on folder to prevent any future undefined from causing the same breakage.

All changes

Like what you see shipping?

All of it arrives in your workspace on its own. Start on the free plan and read this page again in a month.

Start Free ForeverView Pricing