Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
indexeddb: Update storage for
inbound_group_sessions
(#2885)
Currently, querying for inbound group sessions which need backing up is very inefficient: we have to search through the whole list. Here, we change the way they are stored so that we can maintain an index of the ones that need a backup. Fixes: element-hq/element-web#26488 Fixes: #2877 --- * indexeddb: Update storage for inbound_group_sessions Currently, querying for inbound group sessions which need backing up is very inefficient: we have to search through the whole list. Here, we change the way they are stored so that we can maintain an index of the ones that need a backup. * Rename functions for clarity * Remove spurious log line This was a bit verbose * Rename constants for i_g_s store names * improve log messages * add a warning * Rename `InboundGroupSessionIndexedDbObject.data` * formatting
- Loading branch information