Open DanMacDonald opened 2 years ago
Hi @DanMacDonald , could you give more details to replicate the issue. thanks
This issue is more about whats missing rather than what is present...
Observed behavior: WalletB's message to WalletA does not appear in WalletA's inbox.
Expected Behavior: After a few seconds WalletB's message should appear in WalletA's inbox as unread.
Notes:
If you view a message thread by clicking on it in WalletA's inbox, and then click the "Inbox" button in top left to return to the inbox view, the app will perform a background refresh of the inbox calling getWeavemailItems()
to check Arweave for updated message transactions.
The solution to this issue is to listen to a "tab activated" event from the browser and initiate the background refresh call.
Currently the inbox performs a background refresh when returning to it from viewing a thread or composing a new message. It would be better if the app could detect when the browser tab became active and performed a background InboxThread refresh on the users behalf.