mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-30 12:39:20 +03:00
OpenPGP.js automatically import backup keys from server
This commit is contained in:
parent
4365892927
commit
b5dbd0cc7a
2 changed files with 25 additions and 14 deletions
|
|
@ -18,8 +18,6 @@ import { OpenPgpGeneratePopupView } from 'View/Popup/OpenPgpGenerate';
|
|||
import { SMimeUserStore } from 'Stores/User/SMime';
|
||||
import { SMimeImportPopupView } from 'View/Popup/SMimeImport';
|
||||
|
||||
import Remote from 'Remote/User/Fetch';
|
||||
|
||||
export class UserSettingsSecurity extends AbstractViewSettings {
|
||||
constructor() {
|
||||
super();
|
||||
|
|
@ -62,9 +60,7 @@ export class UserSettingsSecurity extends AbstractViewSettings {
|
|||
}
|
||||
|
||||
importToOpenPGP() {
|
||||
OpenPGPUserStore.isSupported() && Remote.request('GetPGPKeys',
|
||||
(iError, oData) => !iError && oData.Result && OpenPGPUserStore.importKeys(oData.Result)
|
||||
);
|
||||
OpenPGPUserStore.loadBackupKeys();
|
||||
}
|
||||
|
||||
importToSMime() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue