Hotfix conflict role Spam/Junk

This commit is contained in:
dab246
2024-08-14 17:04:43 +07:00
committed by Dat H. Pham
parent b5e3881ad4
commit 4d045bbf1a
33 changed files with 519 additions and 172 deletions
@@ -25,7 +25,7 @@ class MailboxConstants {
PresentationMailbox.roleDrafts,
PresentationMailbox.roleSent,
PresentationMailbox.roleTrash,
PresentationMailbox.roleSpam,
PresentationMailbox.roleJunk,
PresentationMailbox.roleTemplates,
];
}
@@ -0,0 +1,4 @@
class NotFoundInboxMailboxException implements Exception {}
class NotFoundMailboxException implements Exception {}
@@ -11,6 +11,4 @@ class SetMailboxMethodException implements Exception {
class NotFoundMailboxCreatedException implements Exception {}
class NotFoundMailboxUpdatedRoleException implements Exception {}
class NotFoundMailboxException implements Exception {}
class NotFoundMailboxUpdatedRoleException implements Exception {}
@@ -15,7 +15,7 @@ extension RoleExtension on Role {
return 'Drafts';
} else if (this == PresentationMailbox.roleTrash) {
return 'Trash';
} else if (this == PresentationMailbox.roleSpam) {
} else if (this == PresentationMailbox.roleSpam || this == PresentationMailbox.roleJunk) {
return 'Spam';
} else if (this == PresentationMailbox.roleTemplates) {
return 'Templates';