Merge branch 'hotfix/3.5.16' into develop
This commit is contained in:
@@ -3,7 +3,8 @@ import {
|
|||||||
EncryptionIntent,
|
EncryptionIntent,
|
||||||
ContentType,
|
ContentType,
|
||||||
SNNote,
|
SNNote,
|
||||||
BackupFile
|
BackupFile,
|
||||||
|
PayloadContent,
|
||||||
} from '@standardnotes/snjs';
|
} from '@standardnotes/snjs';
|
||||||
|
|
||||||
function zippableTxtName(name: string, suffix = ""): string {
|
function zippableTxtName(name: string, suffix = ""): string {
|
||||||
@@ -106,8 +107,8 @@ export class ArchiveManager {
|
|||||||
let name, contents;
|
let name, contents;
|
||||||
if (item.content_type === ContentType.Note) {
|
if (item.content_type === ContentType.Note) {
|
||||||
const note = item as SNNote;
|
const note = item as SNNote;
|
||||||
name = note.title;
|
name = (note.content as PayloadContent).title;
|
||||||
contents = note.text;
|
contents = (note.content as PayloadContent).text;
|
||||||
} else {
|
} else {
|
||||||
name = item.content_type;
|
name = item.content_type;
|
||||||
contents = JSON.stringify(item.content, null, 2);
|
contents = JSON.stringify(item.content, null, 2);
|
||||||
|
|||||||
@@ -197,7 +197,9 @@ export class DesktopManager extends ApplicationService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async desktop_requestBackupFile() {
|
async desktop_requestBackupFile() {
|
||||||
const data = this.application!.createBackupFile(EncryptionIntent.FileEncrypted);
|
const data = await this.application!.createBackupFile(
|
||||||
|
EncryptionIntent.FileEncrypted
|
||||||
|
);
|
||||||
if (data) {
|
if (data) {
|
||||||
return JSON.stringify(data, null, 2);
|
return JSON.stringify(data, null, 2);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user