TF-1000 Fix need reload web page two times to update mailbox when change state from mail client other

This commit is contained in:
dab246
2022-09-27 11:10:09 +07:00
committed by Dat H. Pham
parent 5a8cf7bb6e
commit a3f6aa7d09
@@ -20,6 +20,8 @@ abstract class BaseMailboxController extends BaseController {
Future buildTree(List<PresentationMailbox> allMailbox) async {
allMailboxes = allMailbox;
final tupleTree = await _treeBuilder.generateMailboxTreeInUI(allMailbox);
defaultMailboxTree.firstRebuild = true;
folderMailboxTree.firstRebuild = true;
defaultMailboxTree.value = tupleTree.value1;
folderMailboxTree.value = tupleTree.value2;
}