MegolmRoomEventEncryptionService

class MegolmRoomEventEncryptionService(roomStore: RoomStore, loadMembersService: LoadMembersService, roomStateStore: RoomStateStore, olmCryptoStore: OlmCryptoStore, keyBackupService: KeyBackupService, outgoingRoomKeyRequestEventHandler: OutgoingRoomKeyRequestEventHandler, olmEncryptionService: OlmEncryptionService) : RoomEventEncryptionService

Constructors

Link copied to clipboard
constructor(roomStore: RoomStore, loadMembersService: LoadMembersService, roomStateStore: RoomStateStore, olmCryptoStore: OlmCryptoStore, keyBackupService: KeyBackupService, outgoingRoomKeyRequestEventHandler: OutgoingRoomKeyRequestEventHandler, olmEncryptionService: OlmEncryptionService)

Functions

Link copied to clipboard

Decrypts given event. Returns null, when encryption algorithm is not supported by this service.

Link copied to clipboard
open suspend override fun encrypt(content: MessageEventContent, roomId: RoomId): Result<MessageEventContent>?

Encrypts given event. Returns null, when encryption algorithm is not supported by this service.