|
|
@ -215,11 +215,13 @@
|
|
|
|
}).map(function(m) {
|
|
|
|
}).map(function(m) {
|
|
|
|
m.markRead();
|
|
|
|
m.markRead();
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
sender: m.get('source'),
|
|
|
|
sender : m.get('source'),
|
|
|
|
timestamp: m.get('sent_at')
|
|
|
|
timestamp : m.get('sent_at')
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}.bind(this));
|
|
|
|
}.bind(this));
|
|
|
|
textsecure.messaging.sendReadReceipts(readReceipts);
|
|
|
|
if (readReceipts.length > 0) {
|
|
|
|
|
|
|
|
textsecure.messaging.sendReadReceipts(readReceipts);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|