encrypt

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.

Be aware, that this function can suspend a long time (for example, when the implementation needs to load all members).