diff --git a/js/models/conversations.js b/js/models/conversations.js index 5d6363f7..643b4213 100644 --- a/js/models/conversations.js +++ b/js/models/conversations.js @@ -215,11 +215,13 @@ }).map(function(m) { m.markRead(); return { - sender: m.get('source'), - timestamp: m.get('sent_at') + sender : m.get('source'), + timestamp : m.get('sent_at') }; }.bind(this)); - textsecure.messaging.sendReadReceipts(readReceipts); + if (readReceipts.length > 0) { + textsecure.messaging.sendReadReceipts(readReceipts); + } } },