From 82299e5aeab357750ca7f27f271da5d73f6f2829 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Fri, 18 Feb 2022 17:18:33 +0100 Subject: [PATCH] Update src/matrix/e2ee/olm/Decryption.ts Co-authored-by: R Midhun Suresh --- src/matrix/e2ee/olm/Decryption.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/matrix/e2ee/olm/Decryption.ts b/src/matrix/e2ee/olm/Decryption.ts index 9698add9..e437716a 100644 --- a/src/matrix/e2ee/olm/Decryption.ts +++ b/src/matrix/e2ee/olm/Decryption.ts @@ -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; });