TF-3189 new option to copy a folder's subaddress
This commit is contained in:
committed by
Dat H. Pham
parent
89d80fe142
commit
f1ec1d7324
@@ -121,7 +121,7 @@ class MailboxTree with EquatableMixin {
|
||||
return false;
|
||||
}
|
||||
|
||||
String? getNodePath(MailboxId mailboxId) {
|
||||
String? getNodePath(MailboxId mailboxId, String pathSeparator) {
|
||||
final matchedNode = findNode((node) => node.item.id == mailboxId);
|
||||
if (matchedNode == null) {
|
||||
return null;
|
||||
@@ -141,9 +141,9 @@ class MailboxTree with EquatableMixin {
|
||||
break;
|
||||
}
|
||||
if (currentContext != null) {
|
||||
path = '${parentNode.item.getDisplayName(currentContext!)}/$path';
|
||||
path = '${parentNode.item.getDisplayName(currentContext!)}$pathSeparator$path';
|
||||
} else {
|
||||
path = '${parentNode.item.name?.name}/$path';
|
||||
path = '${parentNode.item.name?.name}$pathSeparator$path';
|
||||
}
|
||||
parentId = parentNode.item.parentId;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user