Functions

Link copied to clipboard
abstract suspend fun decrypt(event: ClientEvent.RoomEvent.MessageEvent<*>): Result<MessageEventContent>?

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

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

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