Merge pull request #374 from msgmaxim/no-read-receipt-unless-friends

Only send read receipts if friends
pull/378/head
Beaudan Campbell-Brown 6 years ago committed by GitHub
commit fc12f01ab3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1941,6 +1941,11 @@
// conversation is viewed, another error message shows up for the contact
read = read.filter(item => !item.hasErrors);
// Do not send read receipt if not friends yet
if (!this.isFriend()) {
return;
}
if (read.length && options.sendReadReceipts) {
window.log.info(`Sending ${read.length} read receipts`);
// Because syncReadMessages sends to our other devices, and sendReadReceipts goes

Loading…
Cancel
Save