TF-1432 [Domain] Implement subscribe multiple mailbox

This commit is contained in:
dab246
2023-02-10 14:37:25 +07:00
committed by Dat Vu
parent 26f7e1519d
commit 6a27190f01
10 changed files with 209 additions and 16 deletions
+13 -1
View File
@@ -101,7 +101,19 @@ class PresentationMailbox with EquatableMixin {
(namespace?.value.indexOf('[') ?? 0) + 1,
namespace?.value.indexOf(']'));
bool get isShowDisableMailbox => isTeamMailboxes || hasRole() || !hasParentId();
bool get supportedSubscribe => isSubscribed?.value == true;
bool get isSupportedDisableMailbox {
if (!supportedSubscribe) {
return false;
}
if (isPersonal) {
return true;
} else {
return isTeamMailboxes;
}
}
@override
List<Object?> get props => [