fix(googlechat): clean up typing message on NO_REPLY

This commit is contained in:
MumuTW 2026-03-08 13:43:39 +00:00
parent eebee84093
commit 812786a4ec

View File

@ -339,6 +339,15 @@ async function processMessageWithPipeline(params: {
onModelSelected,
},
});
// Clean up typing message if deliver was never called (e.g. NO_REPLY after emoji reaction)
if (typingMessageName) {
try {
await deleteGoogleChatMessage({ account, messageName: typingMessageName });
} catch (err) {
runtime.error?.(`Google Chat typing cleanup on NO_REPLY failed: ${String(err)}`);
}
}
}
async function downloadAttachment(