forked from mystiq/hydrogen-web
add todo for future optimisation
This commit is contained in:
parent
ece4840653
commit
4d616ce281
1 changed files with 2 additions and 0 deletions
|
@ -215,6 +215,8 @@ export class RoomEncryption {
|
|||
* @return {Array<string>} the event ids that should be retried to decrypt
|
||||
*/
|
||||
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);
|
||||
if (!eventIds) {
|
||||
eventIds = this._missingSessionCandidates.getEventIds(roomKey.senderKey, roomKey.sessionId);
|
||||
|
|
Loading…
Reference in a new issue