Merge branch 'Yidadaa:main' into main

This commit is contained in:
Hk-Gosuto
2023-08-21 20:18:29 +08:00
committed by GitHub
3 changed files with 8 additions and 2 deletions

View File

@@ -830,7 +830,7 @@ function _Chat() {
(m) => m.id === message.id,
);
if (resendingIndex <= 0 || resendingIndex >= session.messages.length) {
if (resendingIndex < 0 || resendingIndex >= session.messages.length) {
console.error("[Chat] failed to find resending message", message);
return;
}