matrix-js-sdk

    Function decryptExistingEvent

    • Given an event previously returned by mkDecryptionFailureMatrixEvent, simulate a successful re-decryption attempt.

      Parameters

      • mxEvent: MatrixEvent

        The event that will be decrypted.

      • opts: { plainContent: IContent; plainType: string }

        New data for the successful decryption.

        • plainContent: IContent

          The content the event will have, once it has been decrypted.

        • plainType: string

          The type the event will have, once it has been decrypted.

      Returns Promise<void>

    MMNEPVFCICPMFPCPTTAAATR