From f12a7cee4d0217ba51bbab419378eb1872ddc8bd Mon Sep 17 00:00:00 2001 From: Maxim Shishmarev Date: Mon, 5 Aug 2019 12:14:11 +1000 Subject: [PATCH] only send read receipts if friends --- js/models/conversations.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/js/models/conversations.js b/js/models/conversations.js index 0474f7a94..6fa6d0c5f 100644 --- a/js/models/conversations.js +++ b/js/models/conversations.js @@ -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