From d8df66c00cadbde1aa35dd9fcdb520bb5bd230ce Mon Sep 17 00:00:00 2001 From: Harrison Healey Date: Mon, 25 Apr 2016 08:20:45 -0400 Subject: Fixed updating mention keys when a user's username changes (#2774) --- webapp/utils/text_formatting.jsx | 1 - 1 file changed, 1 deletion(-) (limited to 'webapp') diff --git a/webapp/utils/text_formatting.jsx b/webapp/utils/text_formatting.jsx index 3aa82ccdc..88dc412ca 100644 --- a/webapp/utils/text_formatting.jsx +++ b/webapp/utils/text_formatting.jsx @@ -214,7 +214,6 @@ function highlightCurrentMentions(text, tokens) { } for (const mention of UserStore.getCurrentMentionKeys()) { - // occasionally we get an empty mention which matches a bunch of empty strings if (!mention) { continue; } -- cgit v1.2.3-1-g7c22