Files
node-red-contrib-matrix-chat/src
skylord123 bc97c564d3 Fix libolm->rust crypto migration crash on localStorage stores
matrix-js-sdk's LocalStorageCryptoStore.getEndToEndSessionsBatch()
returns olm sessions without the deviceKey/sessionId fields, since
those live only in the storage key path. initRustCrypto()'s migration
then assigns the undefined deviceKey to PickledSession.senderKey and
crashes in the WASM setter with "Cannot read properties of undefined
(reading 'length')". The IndexedDB backend embeds those fields in the
record and is unaffected, which is why this only hit installs that
were started on the legacy localStorage crypto store.

Patch the instance to re-derive deviceKey/sessionId from the
crypto.sessions/<deviceKey> keys before returning a batch, so both
the migration and its delete-after-migrate step work.
2026-05-24 14:17:30 -06:00
..
2023-12-15 22:32:20 -07:00
2023-10-21 19:47:12 -06:00
2023-10-21 19:33:44 -06:00
2023-10-21 19:47:12 -06:00
2023-10-21 19:47:12 -06:00
2023-10-21 19:47:12 -06:00
2023-10-21 19:33:44 -06:00
2023-10-21 19:47:12 -06:00
2023-10-21 19:47:12 -06:00
2023-10-21 19:33:44 -06:00
2023-10-21 19:47:12 -06:00
2023-10-21 19:33:44 -06:00
2023-10-21 19:47:12 -06:00
2023-10-21 19:47:12 -06:00
2023-10-21 19:33:44 -06:00
2023-10-21 19:47:12 -06:00
2023-10-21 19:33:44 -06:00
2023-10-21 19:33:44 -06:00
2023-10-21 19:33:44 -06:00
2023-10-21 19:47:12 -06:00
2023-10-21 19:47:12 -06:00
2023-10-21 19:47:12 -06:00
2023-10-21 19:47:12 -06:00
2023-10-21 19:33:44 -06:00