Dont send read receipts for msg requests or blocked convos.

pull/2222/head
warrickct 3 years ago
parent 1ca66e6bcf
commit 79c1c52034

@ -1123,7 +1123,8 @@ export class ConversationModel extends Backbone.Model<ConversationAttributes> {
`Sending ${read.length} read receipts?`,
window.storage.get(SettingsKey.settingsReadReceipt) || false
);
if (window.storage.get(SettingsKey.settingsReadReceipt)) {
const dontSendReceipt = this.isBlocked() || this.isRequest();
if (window.storage.get(SettingsKey.settingsReadReceipt) && !dontSendReceipt) {
const timestamps = _.map(read, 'timestamp').filter(t => !!t) as Array<number>;
const receiptMessage = new ReadReceiptMessage({
timestamp: Date.now(),

Loading…
Cancel
Save