Update src/matrix/e2ee/olm/Decryption.ts

Co-authored-by: R Midhun Suresh <hi@midhun.dev>
This commit is contained in:
Bruno Windels 2022-02-18 17:18:33 +01:00 committed by GitHub
parent 3330530f68
commit 82299e5aea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -43,7 +43,7 @@ type CreateAndDecryptResult = {
plaintext: string
};
function sortSessions(sessions: Session[]) {
function sortSessions(sessions: Session[]): void {
sessions.sort((a, b) => {
return b.data.lastUsed - a.data.lastUsed;
});