Skip to content

Commit

Permalink
PREAPPS-7198 Evaluting shared mailbox's link folder.
Browse files Browse the repository at this point in the history
  • Loading branch information
miteshsavani810 authored and silentsakky committed Mar 15, 2023
1 parent 4b07b1b commit d5bff44
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/batch-client/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1096,7 +1096,8 @@ export class ZimbraBatchClient {
folder.view === FolderView.Contact ||
folder.view === FolderView.Document
) {
const { absFolderPath, oname, folders, ownerZimbraId, sharedItemId } = folder;
const { absFolderPath, oname, folders, ownerZimbraId, sharedItemId, linkedFolders } =
folder;

/** changed the id to zimbraId:sharedItemId, which is required while moving contact to shared folder and
* server also returns this id in notfications. The original id is stored in userId.
Expand All @@ -1108,6 +1109,9 @@ export class ZimbraBatchClient {
if (oname && folders) {
folder.folders = updateAbsoluteFolderPath(oname, absFolderPath, folders);
}
if (linkedFolders) {
folder.linkedFolders = updateAbsoluteFolderPath(oname, absFolderPath, linkedFolders);
}
}

return folder;
Expand Down

0 comments on commit d5bff44

Please sign in to comment.