We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b11f03 commit 8e530a3Copy full SHA for 8e530a3
components/gmail/gmail.app.mjs
@@ -310,6 +310,18 @@ export default {
310
const bcc = repliedMessage.payload.headers.find(({ name }) => name.toLowerCase() === "bcc");
311
opts.to = from.value.split(",");
312
opts.to.push(...to.value.split(","));
313
+
314
+ // Filter out the current user's email address
315
+ const currentUserEmail = email.toLowerCase().trim();
316
+ opts.to = opts.to.filter((addr) => {
317
+ // Extract email from possible format like "Name <[email protected]>"
318
+ const match = addr.match(/<(.+?)>/) || [
319
+ null,
320
+ addr.trim(),
321
+ ];
322
+ return match[1].toLowerCase() !== currentUserEmail;
323
+ });
324
325
opts.to = [
326
...new Set(opts.to),
327
];
0 commit comments