Closed louis-jan closed 10 hours ago
File | Lines |
---|---|
web/hooks/useSendChatMessage.ts | 92-96, 98, 100, 102, 110, 113, 118-119, 121-126, 129-130, 135, 142, 144-146, 149, 151-152, 154, 156-158, 160, 164, 166, 170, 173-174, 180-181, 185, 196, 199, 203, 206, 209, 217, 220, 226, 229-230, 233-239, 242, 245, 248, 251, 254, 259-260 |
web/screens/Thread/ThreadCenterPanel/EditChatInput/index.tsx | 40-42, 44-51, 53-54, 57-61, 65-69, 74-75, 79-85, 93, 98-103, 107-108, 141, 149, 157, 160 |
Feature build: https://github.com/janhq/jan/actions/runs/12009116996
Describe Your Changes
When editing a message, for instance, "A of A _ B _C," it sends "A B C A" instead of just "A."
Fixes Issues
4086
Changes made
useSendChatMessage.ts
:sendChatMessage
function's signature has been updated to accept an optionalmessages
parameter of typeThreadMessage[]
.requestBuilder.requestThread
, ifmessages
is provided, it will be used; otherwise,currentMessages
will be used as before.index.tsx
:EditChatInput
component, the call tosendChatMessage
has been updated to passnewMessages
as the second argument, matching the updated function signature.These changes likely aim to provide more flexibility when sending chat messages by allowing an optional thread message array to be passed to the
sendChatMessage
function.