Use !== instead of localeCompare when removing conversation recipients

This commit is contained in:
Steffen van Bergerem 2016-11-13 15:10:15 +01:00 committed by Benjamin Neff
parent f2fdaf1daf
commit 2b6465ef25

View file

@ -75,7 +75,7 @@ app.views.ConversationsForm = Backbone.View.extend({
var diasporaHandle = $recipientTagEl.data("diaspora-handle");
this.conversationRecipients = this.conversationRecipients.filter(function(person) {
return diasporaHandle.localeCompare(person.handle) !== 0;
return diasporaHandle !== person.handle;
});
this.updateContactIdsListInput();