(index)
| 8842 | const messages = await chatDB.getSessionMessages(session.id); |
| 8843 | if (this.isSessionDeleted(session.id)) return; |
| 8844 | const messageIndex = messages.findIndex(m => m.id === messageId); |
| 8845 | |
| 8846 | if (messageIndex === -1) return; |
| 8847 | |
| 8848 | const message = messages[messageIndex]; |
| 8849 | |
| 8850 | // Update the message content and attachment set as one committed edit. |
| 8851 | message.content = newContent; |
| 8852 | message.files = draftFiles.length > 0 ? draftFiles : null; |
| 8853 | delete message.pendingFileObjects; |
nothing calls this directly
no test coverage detected