better reply behavior

This commit is contained in:
Arjun 2026-05-25 09:25:08 +05:30
parent 54374fbc4c
commit 5f49fb87cd

View file

@ -152,6 +152,9 @@ function buildRecipients(
const selfSet = new Set<string>(self ? [self] : [])
const to = dedupeRecipients(rawTo, selfSet)
if (iAmSender && to.length === 0 && self && rawTo.some((token) => extractAddress(token).toLowerCase() === self)) {
to.push(self)
}
if (mode === 'reply') return { to, cc: [] }