turns out electron13 has no array.at()
This commit is contained in:
parent
a73e10fc77
commit
5fe04c5882
1 changed files with 1 additions and 1 deletions
|
@ -89,7 +89,7 @@ function getNextMessage(isUp: boolean, isReply: boolean) {
|
||||||
else
|
else
|
||||||
editIdx = i = mutate(editIdx);
|
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
|
// handle next/prev reply
|
||||||
|
|
Loading…
Reference in a new issue