QR: Add handler for group chat creation event

45931a334fbf3bd35285fc025fdfbcf94ec9e3d2

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +1 -0Showing whitespace changes
public/scripts/extensions/quick-reply/index.js+1 -0
@@ -308,6 +308,7 @@ const onNewChat = async () => {
308 await autoExec.handleNewChat();308 await autoExec.handleNewChat();
309};309};
310eventSource.on(event_types.CHAT_CREATED, (...args) => executeIfReadyElseQueue(onNewChat, args));310eventSource.on(event_types.CHAT_CREATED, (...args) => executeIfReadyElseQueue(onNewChat, args));
311eventSource.on(event_types.GROUP_CHAT_CREATED, (...args) => executeIfReadyElseQueue(onNewChat, args));
311312
312const onBeforeGeneration = async (_generationType, _options = {}, isDryRun = false) => {313const onBeforeGeneration = async (_generationType, _options = {}, isDryRun = false) => {
313 if (isDryRun) {314 if (isDryRun) {