Skip to content

Commit

Permalink
ZBUG-2235: Travesh linkedFolder of each folder and update absolutePath
Browse files Browse the repository at this point in the history
  • Loading branch information
miteshsavani810 authored and silentsakky committed Dec 3, 2021
1 parent 0cb778f commit e98035d
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/batch-client/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1027,6 +1027,20 @@ export class ZimbraBatchClient {

if (folders.folders) {
folders.folders = folders.folders.map(setUnreadDescendentFlag);

folders.folders = folders.folders.map((currentFolder: any) => {
if (currentFolder.linkedFolders) {
currentFolder.linkedFolders = currentFolder.linkedFolders.map((linkFolder: any) => {
const { absFolderPath, oname, folders } = linkFolder;

if (oname && folders) {
linkFolder.folders = updateAbsoluteFolderPath(oname, absFolderPath, folders);
}
return linkFolder;
});
}
return currentFolder;
});
}
if (folders.linkedFolders) {
folders.linkedFolders = folders.linkedFolders.map(setUnreadDescendentFlag);
Expand Down

0 comments on commit e98035d

Please sign in to comment.