mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
add todo for future optimisation
This commit is contained in:
parent
ece4840653
commit
4d616ce281
@ -215,6 +215,8 @@ export class RoomEncryption {
|
|||||||
* @return {Array<string>} the event ids that should be retried to decrypt
|
* @return {Array<string>} the event ids that should be retried to decrypt
|
||||||
*/
|
*/
|
||||||
getEventIdsForRoomKey(roomKey) {
|
getEventIdsForRoomKey(roomKey) {
|
||||||
|
// TODO: we could concat both results here, and only put stuff in
|
||||||
|
// candidates if it is not in missing sessions to use a bit less memory
|
||||||
let eventIds = this._missingSessions.getEventIds(roomKey.senderKey, roomKey.sessionId);
|
let eventIds = this._missingSessions.getEventIds(roomKey.senderKey, roomKey.sessionId);
|
||||||
if (!eventIds) {
|
if (!eventIds) {
|
||||||
eventIds = this._missingSessionCandidates.getEventIds(roomKey.senderKey, roomKey.sessionId);
|
eventIds = this._missingSessionCandidates.getEventIds(roomKey.senderKey, roomKey.sessionId);
|
||||||
|
Loading…
Reference in New Issue
Block a user