This commit is contained in:
Timothy Jaeryang Baek 2026-09-28 06:15:24 +04:00
parent ef67cc3fac
commit 82b5181372

View file

@ -1240,7 +1240,11 @@
const chatEventHandler = async (event, cb) => {
console.log(event);
if (event.chat_id === $chatId) {
// A new chat's title can arrive before its id; the response message already exists.
if (
event.chat_id === $chatId ||
(!$chatId && event?.data?.type === 'chat:title' && history.messages[event.message_id])
) {
await tick();
const type = event?.data?.type ?? null;
if (type === 'chat:reload') {