diff --git a/src/vector/platform/ElectronPlatform.tsx b/src/vector/platform/ElectronPlatform.tsx index f8bd22fb60..ad63e6c962 100644 --- a/src/vector/platform/ElectronPlatform.tsx +++ b/src/vector/platform/ElectronPlatform.tsx @@ -500,4 +500,30 @@ export default class ElectronPlatform extends VectorBasePlatform { return handled; } + + async getPickleKey(userId: string, deviceId: string): Promise { + try { + return await this._ipcCall('getPickleKey', userId, deviceId); + } catch (e) { + // if we can't connect to the password storage, assume there's no + // pickle key + return null; + } + } + + async createPickleKey(userId: string, deviceId: string): Promise { + try { + return await this._ipcCall('createPickleKey', userId, deviceId); + } catch (e) { + // if we can't connect to the password storage, assume there's no + // pickle key + return null; + } + } + + async destroyPickleKey(userId: string, deviceId: string): Promise { + try { + await this._ipcCall('destroyPickleKey', userId, deviceId); + } catch (e) {} + } }