encrypt

Decrypts given event. Returns null, when encryption algorithm is not supported by any RoomEventEncryptionService.

Be aware, that this function can suspend a possible infinite time (for example, when an implementation waits for decryption keys).