Function mkDecryptionFailureMatrixEvent

  • Create a MatrixEvent representing a m.room.encrypted event which could not be decrypted.

    Parameters

    • opts: {
          code: DecryptionFailureCode;
          eventId?: string;
          msg: string;
          roomId: string;
          sender: string;
      }

      Values for the event.

      • code: DecryptionFailureCode

        The reason code for the failure

      • OptionaleventId?: string

        Optional event_id for the event. If provided will be used as event ID; else an ID is generated.

      • msg: string

        A textual reason for the failure

      • roomId: string

        Room ID of the event.

      • sender: string

        The sender of the event.

    Returns Promise<MatrixEvent>