fix(session-recovery): detect empty messages with zero parts

Previously, findEmptyContentMessageFromStorage only detected messages
with parts.length > 0 that had no content. This missed the case where
a message has zero parts entirely, causing infinite recovery loops.
This commit is contained in:
YeonGyu-Kim
2025-12-08 11:03:21 +09:00
parent 64db980803
commit aa35f2eab6

View File

@@ -349,7 +349,7 @@ function findEmptyContentMessageFromStorage(sessionID: string): string | null {
return false
})
if (!hasContent && parts.length > 0) {
if (!hasContent) {
return msg.id
}
}