Don't send to blocked users
This commit is contained in:
parent
de942e1af2
commit
fc62fd4564
9 changed files with 55 additions and 5 deletions
|
@ -103,6 +103,12 @@ export async function sendReceipts({
|
|||
);
|
||||
return;
|
||||
}
|
||||
if (sender.isBlocked()) {
|
||||
log.info(
|
||||
`conversation ${sender.idForLogging()} is blocked; refusing to send`
|
||||
);
|
||||
return;
|
||||
}
|
||||
|
||||
const sendOptions = await getSendOptions(sender.attributes);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue