Skip to content

Commit e04d14d

Browse files
Merge pull request #5341 from nextcloud/renovate/com.vanniktech-emoji-google-0.x
fix(deps): update dependency com.vanniktech:emoji-google to v0.23.0
2 parents b32e80c + 3b87e02 commit e04d14d

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ dependencies {
205205
implementation 'androidx.appcompat:appcompat:1.7.1'
206206
implementation 'com.google.android.material:material:1.13.0'
207207
implementation 'androidx.constraintlayout:constraintlayout:2.2.1'
208-
implementation "com.vanniktech:emoji-google:0.21.0"
208+
implementation "com.vanniktech:emoji-google:0.23.0"
209209
implementation "androidx.emoji2:emoji2:${emojiVersion}"
210210
implementation "androidx.emoji2:emoji2-bundled:${emojiVersion}"
211211
implementation "androidx.emoji2:emoji2-views:${emojiVersion}"

app/src/main/java/com/nextcloud/talk/utils/TextMatchers.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,11 @@
1717
public final class TextMatchers {
1818

1919
public static boolean isMessageWithSingleEmoticonOnly(@Nullable final String text) {
20-
final EmojiInformation emojiInformation = Emojis.emojiInformation(text);
21-
return (emojiInformation.isOnlyEmojis && emojiInformation.emojis.size() == 1);
20+
if (text != null) {
21+
final EmojiInformation emojiInformation = Emojis.emojiInformation(text);
22+
return (emojiInformation.isOnlyEmojis && emojiInformation.getEmojiCount() == 1);
23+
} else {
24+
return false;
25+
}
2226
}
2327
}

0 commit comments

Comments
 (0)