mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-05-18 13:40:55 -04:00
fixing ranges
This commit is contained in:
@@ -97,7 +97,6 @@ where
|
||||
store_cipher.hash_key(table_name, self.1.as_encoded_string().as_bytes()),
|
||||
STANDARD_NO_PAD
|
||||
),
|
||||
KEY_SEPARATOR
|
||||
].concat()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -751,7 +751,7 @@ impl IndexeddbStore {
|
||||
self.inner
|
||||
.transaction_on_one_with_mode(KEYS::ROOM_STATE, IdbTransactionMode::Readonly)?
|
||||
.object_store(KEYS::ROOM_STATE)?
|
||||
.get(&self.encode_key(KEYS::ROOM_STATE, (room_id, &event_type, state_key)))?
|
||||
.get(&self.encode_key(KEYS::ROOM_STATE, (room_id, event_type, state_key)))?
|
||||
.await?
|
||||
.map(|f| self.deserialize_event(f))
|
||||
.transpose()
|
||||
@@ -762,7 +762,7 @@ impl IndexeddbStore {
|
||||
room_id: &RoomId,
|
||||
event_type: StateEventType,
|
||||
) -> Result<Vec<Raw<AnySyncStateEvent>>> {
|
||||
let range = self.encode_to_range(KEYS::ROOM_STATE, (room_id, &event_type))?;
|
||||
let range = self.encode_to_range(KEYS::ROOM_STATE, (room_id, event_type))?;
|
||||
Ok(self
|
||||
.inner
|
||||
.transaction_on_one_with_mode(KEYS::ROOM_STATE, IdbTransactionMode::Readonly)?
|
||||
|
||||
Reference in New Issue
Block a user