Only show larger text for up to 3 emojis

This commit is contained in:
JC Brand 2019-11-20 14:36:53 +01:00
parent 1b9ba58aca
commit ad77ba60e6

View File

@ -330,7 +330,7 @@ converse.plugins.add('converse-emoji', {
*/
isOnlyEmojis (text) {
const words = text.trim().split(/\s+/);
if (words.length === 0 || words.length > 6) {
if (words.length === 0 || words.length > 3) {
return false;
}
const rejects = words.filter(text => {