From 2b6465ef258c252ec2e7b34a71a62b4533c9fe0a Mon Sep 17 00:00:00 2001 From: Steffen van Bergerem <svbergerem@omgsrsly.net> Date: Sun, 13 Nov 2016 15:10:15 +0100 Subject: [PATCH] Use !== instead of localeCompare when removing conversation recipients --- app/assets/javascripts/app/views/conversations_form_view.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/app/views/conversations_form_view.js b/app/assets/javascripts/app/views/conversations_form_view.js index 0b304739b6..74f848de3c 100644 --- a/app/assets/javascripts/app/views/conversations_form_view.js +++ b/app/assets/javascripts/app/views/conversations_form_view.js @@ -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(); -- GitLab