Skip to content

Commit c9137f0

Browse files
mgoldenbergbnjbvr
authored andcommitted
fix(indexeddb): Updates::PushItems performs an update if any provided item already exists
Signed-off-by: Michael Goldenberg <[email protected]>
1 parent 4e0dab9 commit c9137f0

File tree

1 file changed

+1
-1
lines changed
  • crates/matrix-sdk-indexeddb/src/event_cache_store

1 file changed

+1
-1
lines changed

crates/matrix-sdk-indexeddb/src/event_cache_store/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ impl_event_cache_store! {
204204

205205
for (i, item) in items.into_iter().enumerate() {
206206
transaction
207-
.add_item(
207+
.put_item(
208208
room_id,
209209
&types::Event::InBand(InBandEvent {
210210
content: item,

0 commit comments

Comments
 (0)