Skip to content

Commit aac83ff

Browse files
committed
Move CryptoEvent.LegacyCryptoStoreMigrationProgress handler in rust crypto
1 parent d82ba69 commit aac83ff

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/crypto-api/CryptoEventHandlerMap.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,5 @@ export type CryptoEventHandlerMap = {
2929
[CryptoEvent.KeysChanged]: (data: {}) => void;
3030
[CryptoEvent.WillUpdateDevices]: (users: string[], initialFetch: boolean) => void;
3131
[CryptoEvent.DevicesUpdated]: (users: string[], initialFetch: boolean) => void;
32+
[CryptoEvent.LegacyCryptoStoreMigrationProgress]: (progress: number, total: number) => void;
3233
} & RustBackupCryptoEventMap;

src/crypto/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -326,8 +326,6 @@ export type CryptoEventHandlerMap = CryptoApiCryptoEventHandlerMap & {
326326
*/
327327
[CryptoEvent.Warning]: (type: string) => void;
328328
[CryptoEvent.UserCrossSigningUpdated]: (userId: string) => void;
329-
330-
[CryptoEvent.LegacyCryptoStoreMigrationProgress]: (progress: number, total: number) => void;
331329
};
332330

333331
export class Crypto extends TypedEventEmitter<CryptoEvent, CryptoEventHandlerMap> implements CryptoBackend {

0 commit comments

Comments
 (0)