mail icon indicating copy to clipboard operation
mail copied to clipboard

On list layout, the thread disappears after refresh

Open GretaD opened this issue 1 year ago • 1 comments

Steps to reproduce

  1. open the mail app
  2. change to list layout
  3. open a message
  4. 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

GretaD avatar Jun 20 '24 08:06 GretaD

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:

  1. We load envelops via fetchEnvelopes actions only in sync and on Mailbox component
  2. We render MailBox component 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.

GretaD avatar Aug 26 '24 13:08 GretaD