Ignore delivery receipts from myself

// FREEBIE
pull/749/head
lilia 9 years ago
parent a137415b7a
commit 077cba284f

@ -232,6 +232,12 @@
var messages = new Whisper.MessageCollection();
var groups = new Whisper.ConversationCollection();
console.log('delivery receipt', pushMessage.source, timestamp);
if (pushMessage.source === textsecure.storage.user.getNumber()) {
// disregard delivery receipts from myself
return;
}
messages.fetchSentAt(timestamp).then(function() {
groups.fetchGroups(pushMessage.source).then(function() {
var found = false;

Loading…
Cancel
Save