summaryrefslogtreecommitdiffstats
path: root/webapp/components/suggestion/channel_mention_provider.jsx
diff options
context:
space:
mode:
authorHarrison Healey <harrisonmhealey@gmail.com>2017-04-04 00:22:09 -0400
committerCorey Hulen <corey@hulen.com>2017-04-03 21:22:09 -0700
commitc4fd04efb642b42b5829e25b4fc5d8b389fff8de (patch)
treeeaeb4c865ded795af441f982b75d307b49d6b7fb /webapp/components/suggestion/channel_mention_provider.jsx
parent5cd0d5b87eb282c8ae60b1a0b68dfb76b63d5a0e (diff)
downloadchat-c4fd04efb642b42b5829e25b4fc5d8b389fff8de.tar.gz
chat-c4fd04efb642b42b5829e25b4fc5d8b389fff8de.tar.bz2
chat-c4fd04efb642b42b5829e25b4fc5d8b389fff8de.zip
Fixed channel autocomplete flickering (#5961)
Diffstat (limited to 'webapp/components/suggestion/channel_mention_provider.jsx')
-rw-r--r--webapp/components/suggestion/channel_mention_provider.jsx6
1 files changed, 4 insertions, 2 deletions
diff --git a/webapp/components/suggestion/channel_mention_provider.jsx b/webapp/components/suggestion/channel_mention_provider.jsx
index f1d6d9e76..7ea5f7374 100644
--- a/webapp/components/suggestion/channel_mention_provider.jsx
+++ b/webapp/components/suggestion/channel_mention_provider.jsx
@@ -62,12 +62,12 @@ export default class ChannelMentionProvider extends Provider {
if (!captured) {
// Not a channel mention
- return;
+ return false;
}
if (this.lastCompletedWord && captured[0].startsWith(this.lastCompletedWord)) {
// It appears we're still matching a channel handle that we already completed
- return;
+ return false;
}
// Clear the last completed word since we've started to match new text
@@ -125,6 +125,8 @@ export default class ChannelMentionProvider extends Provider {
});
}
);
+
+ return true;
}
handleCompleteWord(term) {