diff options
| author | David Lönnhager <david.l@mullvad.net> | 2021-06-16 10:22:47 +0200 |
|---|---|---|
| committer | David Lönnhager <david.l@mullvad.net> | 2021-06-18 11:53:28 +0200 |
| commit | 5453eece3a53c4cc45c8987a88789e43fb214912 (patch) | |
| tree | c36308988a46a5125949f47611e7f76cba21c27a /gui/src/shared | |
| parent | 335cc80d9347f43264765a3dd359eda83c782bc8 (diff) | |
| download | mullvadvpn-5453eece3a53c4cc45c8987a88789e43fb214912.tar.xz mullvadvpn-5453eece3a53c4cc45c8987a88789e43fb214912.zip | |
Update account history RPCs
Diffstat (limited to 'gui/src/shared')
| -rw-r--r-- | gui/src/shared/ipc-schema.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gui/src/shared/ipc-schema.ts b/gui/src/shared/ipc-schema.ts index 5cc347e51e..01c5c53a95 100644 --- a/gui/src/shared/ipc-schema.ts +++ b/gui/src/shared/ipc-schema.ts @@ -44,7 +44,7 @@ export interface IAppStateSnapshot { isConnected: boolean; autoStart: boolean; accountData?: IAccountData; - accountHistory: AccountToken[]; + accountHistory?: AccountToken; tunnelState: TunnelState; settings: ISettings; location?: ILocation; @@ -165,8 +165,8 @@ export const ipcSchema = { submitVoucher: invoke<string, VoucherResponse>(), }, accountHistory: { - '': notifyRenderer<AccountToken[]>(), - removeItem: invoke<AccountToken, void>(), + '': notifyRenderer<AccountToken | undefined>(), + clear: invoke<void, void>(), }, autoStart: { '': notifyRenderer<boolean>(), @@ -183,7 +183,7 @@ export const ipcSchema = { launchApplication: invoke<ILinuxSplitTunnelingApplication | string, LaunchApplicationResult>(), }, problemReport: { - collectLogs: invoke<string[], string>(), + collectLogs: invoke<string | undefined, string>(), sendReport: invoke<{ email: string; message: string; savedReportId: string }, void>(), viewLog: invoke<string, string>(), }, |
