Class EncryptionAlgorithmAbstract

base type for encryption implementations

Alias

module:crypto/algorithms/base.EncryptionAlgorithm

Param

parameters

Param

The UserID for the local user

Param

The identifier for this device.

Param

crypto core

Param

olm.js wrapper

Param

base matrix api interface

Param

The ID of the room we will be sending to

Param

The body of the m.room.encryption event

Hierarchy

  • EncryptionAlgorithm

Constructors

Properties

baseApis: MatrixClient
crypto: Crypto
deviceId: string
olmDevice: OlmDevice
roomId?: string
userId: string

Methods

  • Encrypt a message event

    Method

    module:crypto/algorithms/base.EncryptionAlgorithm.encryptMessage

    Abstract

    Returns

    Promise which resolves to the new event body

    Parameters

    • room: Room
    • eventType: string
    • content: object

      event content

    Returns Promise<object>

  • Perform any background tasks that can be done before a message is ready to send, in order to speed up sending of the message.

    Parameters

    • room: Room

      the room the event is in

    Returns void

Generated using TypeDoc