Remove self-listener in conversation model

Since there is the only source/listener on this event, it can be called
directly.

// FREEBIE
This commit is contained in:
lilia 2017-05-07 14:18:42 -07:00
parent 731fcb8ecb
commit 8aa2f771a7
2 changed files with 1 additions and 2 deletions

View file

@ -46,7 +46,6 @@
this.on('change:avatar', this.updateAvatarUrl);
this.on('destroy', this.revokeAvatarUrl);
this.on('read', this.onReadMessage);
this.fetchContacts().then(function() {
this.contactCollection.each(function(contact) {
textsecure.storage.protocol.on('keychange:' + contact.id, function() {

View file

@ -35,7 +35,7 @@
if (conversation) {
// notify frontend listeners
conversation.trigger('read', message);
conversation.onReadMessage(message);
}
});
} else {