-
Notifications
You must be signed in to change notification settings - Fork 271
fix no sent mailbox configured #8311
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Where exactly do you set sentMailboxId to null? (I can't get the error reproduced) |
I do it in the vue.js devtools browser extension |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes feel a bit too complex and messy. I think we should try to find a cleaner, less complicated spot to place the logic. I'll think about an alternative.
How about we just move the logic into the head of NewMessageModal::onSend? We have access to the accountId and can fetch the account, check for the mailbox existence and act, then proceed with the usual send logic. The good news is that this isn't too far off the current state. The code just has to be pushed around a bit. I also think we don't necessarily need a special loading text for this state. For the user it's sufficient if we show Sending … while creating/assigning the mailbox |
3913ba7
to
40f8232
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The logical flow looks good otherwise
3201810
to
89aaf43
Compare
Signed-off-by: hamza221 <[email protected]>
89aaf43
to
3503feb
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No test coverage
Signed-off-by: Hamza Mahjoubi <[email protected]>
Signed-off-by: Hamza Mahjoubi <[email protected]>
Signed-off-by: Hamza Mahjoubi <[email protected]>
Signed-off-by: Hamza Mahjoubi <[email protected]>
Signed-off-by: Hamza Mahjoubi <[email protected]>
Signed-off-by: Hamza <[email protected]>
Toasts were all over the place, |
Fix #4153
Repro:
Fix:
Ps: Other ideas are appreciated