refactor: handle uploading imported evernote attachments note-by-note instead of all at once
This commit is contained in:
@@ -176,10 +176,7 @@ export class Importer {
|
||||
}
|
||||
|
||||
async getPayloadsFromFile(file: File, type: string): Promise<DecryptedTransferPayload[]> {
|
||||
const isEntitledToSuper =
|
||||
this.features.getFeatureStatus(
|
||||
NativeFeatureIdentifier.create(NativeFeatureIdentifier.TYPES.SuperEditor).getValue(),
|
||||
) === FeatureStatus.Entitled
|
||||
const isEntitledToSuper = this.isEntitledToSuper()
|
||||
|
||||
if (type === 'super' && !isEntitledToSuper) {
|
||||
throw new Error('Importing Super notes requires a subscription')
|
||||
|
||||
Reference in New Issue
Block a user