mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-25 04:36:46 +00:00
Don't send empty read status reports
// FREEBIE
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user