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
1 changed files with 1 additions and 1 deletions

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;
});