olmDatabase property

DatabaseApi? get olmDatabase

Returns the database used to store olm sessions and the olm account. We don't want to store olm keys for dehydrated devices.

Implementation

DatabaseApi? get olmDatabase =>
    ourDeviceId == client.deviceID ? client.database : null;