OlmStore

interface OlmStore

Functions

Link copied to clipboard
abstract suspend fun findCurve25519Key(userId: UserId, deviceId: String): Key.Curve25519Key?
Link copied to clipboard
abstract suspend fun findDeviceKeys(userId: UserId, senderKey: Key.Curve25519Key): DeviceKeys?
Link copied to clipboard
abstract suspend fun findEd25519Key(userId: UserId, deviceId: String): Key.Ed25519Key?
Link copied to clipboard
abstract suspend fun getDevices(roomId: RoomId, memberships: Set<Membership>): Map<UserId, Set<String>>?
Link copied to clipboard
abstract suspend fun getHistoryVisibility(roomId: RoomId): HistoryVisibilityEventContent.HistoryVisibility?
Link copied to clipboard
abstract suspend fun getInboundMegolmSession(sessionId: String, roomId: RoomId): StoredInboundMegolmSession?
Link copied to clipboard
abstract suspend fun getRoomEncryptionAlgorithm(roomId: RoomId): EncryptionAlgorithm?
Link copied to clipboard
abstract suspend fun updateInboundMegolmMessageIndex(sessionId: String, roomId: RoomId, messageIndex: Long, updater: suspend (StoredInboundMegolmMessageIndex?) -> StoredInboundMegolmMessageIndex?)
Link copied to clipboard
abstract suspend fun updateInboundMegolmSession(sessionId: String, roomId: RoomId, updater: suspend (StoredInboundMegolmSession?) -> StoredInboundMegolmSession?)
Link copied to clipboard
abstract suspend fun updateOlmSessions(senderKey: Key.Curve25519Key, updater: suspend (Set<StoredOlmSession>?) -> Set<StoredOlmSession>?)
Link copied to clipboard
abstract suspend fun updateOutboundMegolmSession(roomId: RoomId, updater: suspend (StoredOutboundMegolmSession?) -> StoredOutboundMegolmSession?)

Properties

Link copied to clipboard
abstract val forgetFallbackKeyAfter: MutableStateFlow<Instant?>
Link copied to clipboard
abstract val olmAccount: MutableStateFlow<String?>
Link copied to clipboard
abstract val olmPickleKey: String