mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2026-02-09 18:48:34 +00:00
chore: checkout features from trift to devel
This commit is contained in:
@ -37,7 +37,7 @@ type APIClient interface {
|
||||
|
||||
GetMessage(ctx context.Context, messageID string) (proton.Message, error)
|
||||
GetMessageMetadataPage(ctx context.Context, page, pageSize int, filter proton.MessageFilter) ([]proton.MessageMetadata, error)
|
||||
GetMessageIDs(ctx context.Context, afterID string) ([]string, error)
|
||||
GetAllMessageIDs(ctx context.Context, afterID string) ([]string, error)
|
||||
CreateDraft(ctx context.Context, addrKR *crypto.KeyRing, req proton.CreateDraftReq) (proton.Message, error)
|
||||
UploadAttachment(ctx context.Context, addrKR *crypto.KeyRing, req proton.CreateAttachmentReq) (proton.Attachment, error)
|
||||
ImportMessages(ctx context.Context, addrKR *crypto.KeyRing, workers, buffer int, req ...proton.ImportReq) (stream.Stream[proton.ImportRes], error)
|
||||
|
||||
@ -162,7 +162,7 @@ func (s *syncJob) sync(ctx context.Context) error {
|
||||
s.log.Info("Syncing messages")
|
||||
|
||||
// Determine which messages to sync.
|
||||
messageIDs, err := s.client.GetMessageIDs(ctx, "")
|
||||
messageIDs, err := s.client.GetAllMessageIDs(ctx, "")
|
||||
if err != nil {
|
||||
return fmt.Errorf("failed to get message IDs to sync: %w", err)
|
||||
}
|
||||
|
||||
@ -140,7 +140,7 @@ func (apm DiagnosticMetadata) BuildMailboxToMessageMap(ctx context.Context, user
|
||||
func (user *User) GetDiagnosticMetadata(ctx context.Context) (DiagnosticMetadata, error) {
|
||||
failedMessages := xmaps.SetFromSlice(user.vault.SyncStatus().FailedMessageIDs)
|
||||
|
||||
messageIDs, err := user.client.GetMessageIDs(ctx, "")
|
||||
messageIDs, err := user.client.GetAllMessageIDs(ctx, "")
|
||||
if err != nil {
|
||||
return DiagnosticMetadata{}, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user