Use !== instead of localeCompare when removing conversation recipients
This commit is contained in:
parent
f2fdaf1daf
commit
2b6465ef25
1 changed files with 1 additions and 1 deletions
|
|
@ -75,7 +75,7 @@ app.views.ConversationsForm = Backbone.View.extend({
|
||||||
var diasporaHandle = $recipientTagEl.data("diaspora-handle");
|
var diasporaHandle = $recipientTagEl.data("diaspora-handle");
|
||||||
|
|
||||||
this.conversationRecipients = this.conversationRecipients.filter(function(person) {
|
this.conversationRecipients = this.conversationRecipients.filter(function(person) {
|
||||||
return diasporaHandle.localeCompare(person.handle) !== 0;
|
return diasporaHandle !== person.handle;
|
||||||
});
|
});
|
||||||
|
|
||||||
this.updateContactIdsListInput();
|
this.updateContactIdsListInput();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue