Only show larger text for up to 3 emojis
This commit is contained in:
parent
1b9ba58aca
commit
ad77ba60e6
@ -330,7 +330,7 @@ converse.plugins.add('converse-emoji', {
|
|||||||
*/
|
*/
|
||||||
isOnlyEmojis (text) {
|
isOnlyEmojis (text) {
|
||||||
const words = text.trim().split(/\s+/);
|
const words = text.trim().split(/\s+/);
|
||||||
if (words.length === 0 || words.length > 6) {
|
if (words.length === 0 || words.length > 3) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
const rejects = words.filter(text => {
|
const rejects = words.filter(text => {
|
||||||
|
Loading…
Reference in New Issue
Block a user