mail
mail copied to clipboard
On list layout, the thread disappears after refresh
Steps to reproduce
- open the mail app
- change to list layout
- open a message
- reload the page
Expected behavior
i still see the thread
Actual behavior
the thread disappears
Mail app version
3.7
Mailserver or service
No response
Operating system
No response
PHP engine version
None
Web server
None
Database
None
Additional info
No response
Some findings if someone wants to fix it before i find the time to pick it up.
It doesn't show the thread because it actually thinks there is no threads. hasEnvelopes in MailboxThread is false on initial rendering.
Then in eventually becomes true. What we do is that:
- We load envelops via
fetchEnvelopesactions only in sync and onMailboxcomponent - We render
MailBoxcomponent only on the list of MailboxThread So, if we open thread only, we just don't load any envelopes, because we do it on some component inside the list.
A quick thinking is that probably we need to fetchEnvelops not from the Mailbox component, but from MailboxThread.