diff --git a/src/internal/m365/collection/groups/handlers.go b/src/internal/m365/collection/groups/handlers.go index f5a28fd28..bf3cb8f0f 100644 --- a/src/internal/m365/collection/groups/handlers.go +++ b/src/internal/m365/collection/groups/handlers.go @@ -31,3 +31,10 @@ type BackupHandler interface { teamID, channelID, messageID string, ) (serialization.Parsable, error) } + +type BackupMessagesHandler interface { + GetMessage(ctx context.Context, teamID, channelID, itemID string) (models.ChatMessageable, error) + NewMessagePager(teamID, channelID string) api.ChannelMessageDeltaEnumerator + GetChannel(ctx context.Context, teamID, channelID string) (models.Channelable, error) + GetReply(ctx context.Context, teamID, channelID, messageID string) (serialization.Parsable, error) +} diff --git a/src/pkg/services/m365/api/channels_pager.go b/src/pkg/services/m365/api/channels_pager.go index ca716a035..55f728b42 100644 --- a/src/pkg/services/m365/api/channels_pager.go +++ b/src/pkg/services/m365/api/channels_pager.go @@ -143,8 +143,7 @@ func (p *channelPageCtrl) ValuesIn(l PageLinker) ([]models.Channelable, error) { } func (p *channelPageCtrl) GetOdataNextLink() *string { - // TODO: no delta present here. Is it possible to have interface which does not have - // GetOdataNextLink method + // No next link preent in the API result emptyString := "" return &emptyString }