crypto/decryptolm: don't use deleted sessions for decrypting
Some checks failed
Go / Lint (latest) (push) Has been cancelled
Go / Build (old, libolm) (push) Has been cancelled
Go / Build (latest, libolm) (push) Has been cancelled
Go / Build (old, goolm) (push) Has been cancelled
Go / Build (latest, goolm) (push) Has been cancelled

This commit is contained in:
Tulir Asokan 2024-11-22 10:20:34 +02:00
commit b4551fc3da

View file

@ -208,6 +208,7 @@ func (mach *OlmMachine) tryDecryptOlmCiphertextWithExistingSession(ctx context.C
Msg("Deleted olm session")
}
}
sessions = sessions[:MaxOlmSessionsPerDevice]
}
for _, session := range sessions {