Fix suggesting emoji with white space
This commit is contained in:
parent
60bb07ff0f
commit
26e1acfc84
@ -1303,7 +1303,7 @@ export default class ChatInput {
|
|||||||
if(matches) {
|
if(matches) {
|
||||||
const entity = entities[0];
|
const entity = entities[0];
|
||||||
|
|
||||||
const query = matches[2];
|
let query = matches[2];
|
||||||
const firstChar = query[0];
|
const firstChar = query[0];
|
||||||
|
|
||||||
if(this.stickersHelper &&
|
if(this.stickersHelper &&
|
||||||
@ -1322,7 +1322,8 @@ export default class ChatInput {
|
|||||||
foundHelper = this.commandsHelper;
|
foundHelper = this.commandsHelper;
|
||||||
}
|
}
|
||||||
} else if(rootScope.settings.emoji.suggest) { // emoji
|
} else if(rootScope.settings.emoji.suggest) { // emoji
|
||||||
if(!value.match(/^\s*:(.+):\s*$/) && !value.match(/:[;!@#$%^&*()-=|]/)) {
|
query = query.replace(/^\s*/, '');
|
||||||
|
if(!value.match(/^\s*:(.+):\s*$/) && !value.match(/:[;!@#$%^&*()-=|]/) && query) {
|
||||||
foundHelper = this.emojiHelper;
|
foundHelper = this.emojiHelper;
|
||||||
this.emojiHelper.checkQuery(query, firstChar);
|
this.emojiHelper.checkQuery(query, firstChar);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user