You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Intermittent error when trying to compose an email from the Contacts screen.
Sometimes, when selecting a contact and clicking the option to send an email, the email composition window does not open. Instead, it returns to the Email screen, and an error appears in the console.
To Reproduce
Steps to reproduce the behavior:
Open the Contacts screen.
Select a contact.
Press F12 and click the option to send an email.
Occasionally, the email composition window fails to open, and an error is logged in the console.
Expected behavior
The email composition window should open immediately when clicking the option to send an email.
Screenshots
N/A
Please complete the following information:
Browser: Chrome 132.0.6834.83
IMAP daemon: Dovecot
PHP version: 8.3
SnappyMail Version: 2.38.2
Mode: Integrated with Nextcloud
Debug/logging information
Uncaught TypeError: Cannot read properties of undefined (reading 'formattedName')
at new ComposePopupView (app.min.js?v=4.18.2:1:142079)
at Ms (app.min.js?v=4.18.2:1:49669)
at Ns (app.min.js?v=4.18.2:1:51468)
at AppUser.showMessageComposer (app.min.js?v=4.18.2:1:213383)
at Er (app.min.js?v=4.18.2:1:109306)
at wr (app.min.js?v=4.18.2:1:109169)
ComposePopupView @ app.min.js?v=4.18.2:1
Ms @ app.min.js?v=4.18.2:1
Ns @ app.min.js?v=4.18.2:1
showMessageComposer @ app.min.js?v=4.18.2:1
Er @ app.min.js?v=4.18.2:1
wr @ app.min.js?v=4.18.2:1
(anonymous) @ app.min.js?v=4.18.2:1
setTimeout
(anonymous) @ app.min.js?v=4.18.2:1
(anonymous) @ app.min.js?v=4.18.2:1
Promise.then
ir @ app.min.js?v=4.18.2:1
start @ app.min.js?v=4.18.2:1
bootstart @ app.min.js?v=4.18.2:1
bootstart @ app.min.js?v=4.18.2:1
n @ snappymail/:367
(anonymous) @ snappymail/:367
Promise.then
(anonymous) @ snappymail/:367
Promise.then
(anonymous) @ snappymail/:367
(anonymous) @ snappymail/:367
Additional context
After analyzing the issue, it seems that the loadAccountsAndIdentities function is not asynchronous, causing the code flow to continue before the store is properly updated with the identities. This issue occurs intermittently. I tried alternatives using Promises but was not successful.
The text was updated successfully, but these errors were encountered:
Describe the bug
Intermittent error when trying to compose an email from the Contacts screen.
Sometimes, when selecting a contact and clicking the option to send an email, the email composition window does not open. Instead, it returns to the Email screen, and an error appears in the console.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The email composition window should open immediately when clicking the option to send an email.
Screenshots
N/A
Please complete the following information:
Debug/logging information
Additional context
After analyzing the issue, it seems that the
loadAccountsAndIdentities
function is not asynchronous, causing the code flow to continue before the store is properly updated with the identities. This issue occurs intermittently. I tried alternatives using Promises but was not successful.The text was updated successfully, but these errors were encountered: