({keyringId})
| 269 | } |
| 270 | |
| 271 | async deleteKeyring({keyringId}) { |
| 272 | if (keyringId === MAIN_KEYRING_ID) { |
| 273 | throw new Error('Cannot delete main keyring'); |
| 274 | } |
| 275 | setActiveKeyringId(MAIN_KEYRING_ID); |
| 276 | await deleteKeyring(keyringId); |
| 277 | await autocrypt.deleteIdentities([keyringId]); |
| 278 | } |
| 279 | |
| 280 | async encryptMessage(options) { |
| 281 | options.unlockKey = async options => { |
nothing calls this directly
no test coverage detected