This commit is contained in:
GH Action - Upstream Sync
2023-08-22 00:56:24 +00:00
3 changed files with 8 additions and 2 deletions

View File

@@ -802,7 +802,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;
}