mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-05-08 16:04:13 -04:00
It turns out that so as to be able to read the room ids, they need to be *values*, not only *keys* (since keys are one-way hashed). This means we need to duplicate the room_id field in indexeddb/sqlite, so each entry contains both the room_id as a key (for queries) and as a value (to return it). Since there's no meaningful migration we can apply, the way to go is to drop the pending events table and recreate it from the ground up. It is assumed that no one has used the store on indexeddb; otherwise the workaround would be to drop and recreate it.