only send read receipts if friends

pull/374/head
Maxim Shishmarev 6 years ago
parent 56c0d12e39
commit f12a7cee4d

@ -1938,6 +1938,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