Empty message isn't really made of emoji

Stephen Paul Weber created

Change summary

src/main/java/eu/siacs/conversations/utils/Emoticons.java | 2 ++
1 file changed, 2 insertions(+)

Detailed changes

src/main/java/eu/siacs/conversations/utils/Emoticons.java 🔗

@@ -8,6 +8,8 @@ public class Emoticons {
     }
 
     public static boolean isOnlyEmoji(String input) {
+        if (input.trim().length() == 0) return false; // Vaccuously true but not useful
+
         return EmojiManager.removeAllEmojis(input).replaceAll("\uFE0F", "").trim().length() == 0;
     }
 }