Function mkEncryptedMatrixEvent

  • Create a MatrixEvent representing a successfully-decrypted m.room.encrypted event.

    Parameters

    • opts: {
          eventId?: string;
          plainContent: IContent;
          plainType: string;
          roomId: string;
          sender: string;
      }

      Values for the event.

      • OptionaleventId?: string

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

      • 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.

      • roomId: string

        Room ID of the event.

      • sender: string

        The sender of the event.

    Returns Promise<MatrixEvent>