Skip to main content

insert_archive

Function insert_archive 

Source
pub async fn insert_archive<F, Fut>(
    first: &mut ArchiveImporter,
    reopen: F,
    context: &impl XmtpSharedContext,
) -> Result<(), DeviceSyncError>
where F: FnOnce() -> Fut, Fut: Future<Output = Result<ArchiveImporter, ArchiveError>>,
Expand description

Import an archive. first reads it once for its deletion messages; reopen then reads it again for the import, so a pre-8.0 self-deletion is restored whichever comes first, it or its target.