TF-1310: [Presentation] Refactor buildTree logic in TreeBuilder + BaseMailboxController
This commit is contained in:
@@ -19,6 +19,7 @@ extension MailboxExtension on Mailbox {
|
||||
unreadThreads: unreadThreads,
|
||||
myRights: myRights,
|
||||
isSubscribed: isSubscribed,
|
||||
namespace: namespace,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -35,6 +36,7 @@ extension MailboxExtension on Mailbox {
|
||||
unreadThreads: updatedProperties.contain(MailboxProperty.unreadThreads) ? newMailbox.unreadThreads : unreadThreads,
|
||||
myRights: updatedProperties.contain(MailboxProperty.myRights) ? newMailbox.myRights : myRights,
|
||||
isSubscribed: updatedProperties.contain(MailboxProperty.isSubscribed) ? newMailbox.isSubscribed : isSubscribed,
|
||||
namespace: updatedProperties.contain(MailboxProperty.namespace) ? newMailbox.namespace : namespace,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -51,6 +53,7 @@ extension MailboxExtension on Mailbox {
|
||||
unreadThreads: unreadThreads,
|
||||
myRights: myRights,
|
||||
isSubscribed: isSubscribed,
|
||||
namespace: namespace,
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -18,7 +18,8 @@ extension PresentationMailboxExtension on PresentationMailbox {
|
||||
isSubscribed: isSubscribed,
|
||||
selectMode: selectMode,
|
||||
mailboxPath: mailboxPath,
|
||||
state: state
|
||||
state: state,
|
||||
namespace: namespace,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -37,7 +38,8 @@ extension PresentationMailboxExtension on PresentationMailbox {
|
||||
isSubscribed: isSubscribed,
|
||||
selectMode: selectMode,
|
||||
mailboxPath: mailboxPath,
|
||||
state: newMailboxState
|
||||
state: newMailboxState,
|
||||
namespace: namespace,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -53,7 +55,8 @@ extension PresentationMailboxExtension on PresentationMailbox {
|
||||
totalThreads: totalThreads,
|
||||
unreadThreads: unreadThreads,
|
||||
myRights: myRights,
|
||||
isSubscribed: isSubscribed
|
||||
isSubscribed: isSubscribed,
|
||||
namespace: namespace,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -72,7 +75,8 @@ extension PresentationMailboxExtension on PresentationMailbox {
|
||||
isSubscribed: isSubscribed,
|
||||
mailboxPath: mailboxPath,
|
||||
selectMode: selectMode == SelectMode.INACTIVE ? SelectMode.ACTIVE : SelectMode.INACTIVE,
|
||||
state: state
|
||||
state: state,
|
||||
namespace: namespace,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -91,7 +95,8 @@ extension PresentationMailboxExtension on PresentationMailbox {
|
||||
isSubscribed: isSubscribed,
|
||||
mailboxPath: mailboxPath,
|
||||
selectMode: selectMode,
|
||||
state: state
|
||||
state: state,
|
||||
namespace: namespace,
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user