We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb39120 commit 3b87e02Copy full SHA for 3b87e02
app/src/main/java/com/nextcloud/talk/utils/TextMatchers.java
@@ -17,7 +17,11 @@
17
public final class TextMatchers {
18
19
public static boolean isMessageWithSingleEmoticonOnly(@Nullable final String text) {
20
- final EmojiInformation emojiInformation = Emojis.emojiInformation(text);
21
- return (emojiInformation.isOnlyEmojis && emojiInformation.emojis.size() == 1);
+ if (text != null) {
+ final EmojiInformation emojiInformation = Emojis.emojiInformation(text);
22
+ return (emojiInformation.isOnlyEmojis && emojiInformation.getEmojiCount() == 1);
23
+ } else {
24
+ return false;
25
+ }
26
}
27
0 commit comments