From 5fe04c5882e67cc4ac0ec458ee225b433c22590c Mon Sep 17 00:00:00 2001 From: Vendicated Date: Thu, 13 Oct 2022 18:51:25 +0200 Subject: [PATCH] turns out electron13 has no array.at() --- src/plugins/interactionKeybinds.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/interactionKeybinds.ts b/src/plugins/interactionKeybinds.ts index 9c187b1e..3f6c7b42 100644 --- a/src/plugins/interactionKeybinds.ts +++ b/src/plugins/interactionKeybinds.ts @@ -89,7 +89,7 @@ function getNextMessage(isUp: boolean, isReply: boolean) { else editIdx = i = mutate(editIdx); - return i === - 1 ? undefined : messages.at(-i - 1); + return i === - 1 ? undefined : messages[messages.length - i - 1]; } // handle next/prev reply