mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-07-21 21:31:12 +02:00
better reply behavior
This commit is contained in:
parent
54374fbc4c
commit
5f49fb87cd
1 changed files with 3 additions and 0 deletions
|
|
@ -152,6 +152,9 @@ function buildRecipients(
|
||||||
|
|
||||||
const selfSet = new Set<string>(self ? [self] : [])
|
const selfSet = new Set<string>(self ? [self] : [])
|
||||||
const to = dedupeRecipients(rawTo, selfSet)
|
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: [] }
|
if (mode === 'reply') return { to, cc: [] }
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue