Commit 809b9259 authored by Harrison Healey's avatar Harrison Healey Committed by Christopher Speller
Browse files

PLT-8108 Fixed channel link autocomplete triggering after text returns no results (#280)

parent 21969423
......@@ -65,7 +65,9 @@ export default class ChannelMentionProvider extends Provider {
return false;
}
if (this.lastPrefixWithNoResults && pretext.startsWith(this.lastPrefixWithNoResults)) {
const prefix = captured[3];
if (this.lastPrefixWithNoResults && prefix.startsWith(this.lastPrefixWithNoResults)) {
// Just give up since we know it won't return any results
return false;
}
......@@ -78,8 +80,6 @@ export default class ChannelMentionProvider extends Provider {
// Clear the last completed word since we've started to match new text
this.lastCompletedWord = '';
const prefix = captured[3];
this.startNewRequest(suggestionId, prefix);
autocompleteChannels(
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment