Don't send to blocked users

This commit is contained in:
Scott Nonnenberg 2022-02-24 18:40:56 -08:00 committed by GitHub
parent de942e1af2
commit fc62fd4564
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 55 additions and 5 deletions

View file

@ -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);