matrix-js-sdk
matrix-js-sdk copied to clipboard
change handling of multiple olm sessions according to spec
The current behaviour uses the session with the lowest ID. The new spec (https://github.com/matrix-org/matrix-doc/pull/1596) uses the session that the client last received a message on, and expires old sessions.
This would require modifying getSessionIdForDevice in src/crypto/OlmDevice.js, and probably will need to store the time that the client last received a mesage for each session in indexedDB