Skip to content

Commit

Permalink
Merge branch 'feat/unencrypted' into tmp/20250103
Browse files Browse the repository at this point in the history
  • Loading branch information
heisenberg-2077 committed Dec 31, 2024
2 parents b3dde00 + b9268eb commit 702f835
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/background/service/keyring/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -828,6 +828,13 @@ export class KeyringService extends EventEmitter {
if (!UNENCRYPTED_IGNORE_KEYRING.includes(type as any)) {
return { type, data };
}

// maybe empty keyring
// TODO: maybe need remove simple keyring if empty
if (type === KEYRING_TYPE.SimpleKeyring && !data.length) {
return undefined;
}

hasEncryptedKeyringData = true;
return undefined;
})
Expand Down

0 comments on commit 702f835

Please sign in to comment.