fix: handle chatId encoding in reconnectToStream (#4670)
* fix: handle chatId encoding in reconnectToStream * fix: ensure chatId is always encoded in reconnectToStream
This commit is contained in:
parent
520ea60f2a
commit
26d7e3cb1a
|
|
@ -132,4 +132,11 @@ class ExtendChatTransport extends HttpChatTransport<BizUIMessage> {
|
|||
console.error("Failed to persist generated title:", error)
|
||||
}
|
||||
}
|
||||
|
||||
override reconnectToStream(
|
||||
options: Parameters<HttpChatTransport<BizUIMessage>["reconnectToStream"]>[0],
|
||||
) {
|
||||
options.chatId = encodeURIComponent(options.chatId)
|
||||
return super.reconnectToStream(options)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue