CryptoEventHandlerMap: CryptoEventHandlerMap & {
    crypto.keySignatureUploadFailure: ((failures: IUploadKeySignaturesResponse["failures"], source: "checkOwnCrossSigningTrust" | "afterCrossSigningLocalKeyChange" | "setDeviceVerification", upload: ((opts: {
        shouldEmit: boolean;
    }) => Promise<void>)) => void);
    crypto.legacyCryptoStoreMigrationProgress: ((progress: number, total: number) => void);
    crypto.roomKeyRequest: ((request: IncomingRoomKeyRequest) => void);
    crypto.roomKeyRequestCancellation: ((request: IncomingRoomKeyRequestCancellation) => void);
    crypto.verification.request: ((request: VerificationRequest<any>) => void);
    crypto.warning: ((type: string) => void);
    deviceVerificationChanged: ((userId: string, deviceId: string, deviceInfo: DeviceInfo) => void);
    userCrossSigningUpdated: ((userId: string) => void);
}

Type declaration

  • crypto.keySignatureUploadFailure: ((failures: IUploadKeySignaturesResponse["failures"], source: "checkOwnCrossSigningTrust" | "afterCrossSigningLocalKeyChange" | "setDeviceVerification", upload: ((opts: {
        shouldEmit: boolean;
    }) => Promise<void>)) => void)
      • (failures, source, upload): void
      • Parameters

        • failures: IUploadKeySignaturesResponse["failures"]
        • source: "checkOwnCrossSigningTrust" | "afterCrossSigningLocalKeyChange" | "setDeviceVerification"
        • upload: ((opts: {
              shouldEmit: boolean;
          }) => Promise<void>)
            • (opts): Promise<void>
            • Parameters

              • opts: {
                    shouldEmit: boolean;
                }
                • shouldEmit: boolean

              Returns Promise<void>

        Returns void

  • crypto.legacyCryptoStoreMigrationProgress: ((progress: number, total: number) => void)
      • (progress, total): void
      • Parameters

        • progress: number
        • total: number

        Returns void

  • crypto.roomKeyRequest: ((request: IncomingRoomKeyRequest) => void)

    Fires when we receive a room key request

  • crypto.roomKeyRequestCancellation: ((request: IncomingRoomKeyRequestCancellation) => void)

    Fires when we receive a room key request cancellation

  • crypto.verification.request: ((request: VerificationRequest<any>) => void)

    Fires when a key verification is requested.

    Deprecated: use CryptoEvent.VerificationRequestReceived.

  • crypto.warning: ((type: string) => void)

    Fires when the app may wish to warn the user about something related the end-to-end crypto.

      • (type): void
      • Parameters

        • type: string

          One of the strings listed above

        Returns void

  • deviceVerificationChanged: ((userId: string, deviceId: string, deviceInfo: DeviceInfo) => void)

    Fires when a device is marked as verified/unverified/blocked/unblocked by MatrixClient.setDeviceVerified or MatrixClient.setDeviceBlocked.

      • (userId, deviceId, deviceInfo): void
      • Parameters

        • userId: string

          the owner of the verified device

        • deviceId: string

          the id of the verified device

        • deviceInfo: DeviceInfo

          updated device information

        Returns void

  • userCrossSigningUpdated: ((userId: string) => void)
      • (userId): void
      • Parameters

        • userId: string

        Returns void