From d210ba475f2feb1f7987ea109076ab884542aef2 Mon Sep 17 00:00:00 2001 From: Abhishek Pandey Date: Wed, 6 Dec 2023 23:22:42 -0800 Subject: [PATCH] Add conv export --- src/internal/m365/service/groups/export.go | 2 +- .../operations/pathtransformer/restore_path_transformer.go | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/internal/m365/service/groups/export.go b/src/internal/m365/service/groups/export.go index 7f667b8fc..c7610dc20 100644 --- a/src/internal/m365/service/groups/export.go +++ b/src/internal/m365/service/groups/export.go @@ -82,7 +82,7 @@ func (h *baseGroupsHandler) ProduceExportCollections( ) switch cat { - case path.ChannelMessagesCategory: + case path.ChannelMessagesCategory, path.ConversationPostsCategory: folders = append(folders, fp.Folders()...) coll = groups.NewExportCollection( diff --git a/src/internal/operations/pathtransformer/restore_path_transformer.go b/src/internal/operations/pathtransformer/restore_path_transformer.go index 5cc794479..584942033 100644 --- a/src/internal/operations/pathtransformer/restore_path_transformer.go +++ b/src/internal/operations/pathtransformer/restore_path_transformer.go @@ -143,7 +143,8 @@ func makeRestorePathsForEntry( switch true { case ent.Exchange != nil || (ent.Groups != nil && ent.Groups.ItemType == details.GroupsChannelMessage) || - (ent.SharePoint != nil && ent.SharePoint.ItemType == details.SharePointList): + (ent.SharePoint != nil && ent.SharePoint.ItemType == details.SharePointList) || + (ent.Groups != nil && ent.Groups.ItemType == details.GroupsConversationPost): // TODO(ashmrtn): Eventually make Events have it's own function to handle // setting the restore destination properly. res.RestorePath, err = basicLocationPath(repoRef, locRef)