encryptionAlgorithm property

String? encryptionAlgorithm

Returns the encryption algorithm. Currently only m.megolm.v1.aes-sha2 is supported. Returns null if there is no encryption algorithm.

Implementation

String? get encryptionAlgorithm =>
    getState(EventTypes.Encryption)?.parsedRoomEncryptionContent.algorithm;