Ensure group membership for typing indicators.

This commit is contained in:
Alan Evans
2020-04-08 14:01:32 -03:00
committed by Greyson Parrelli
parent 68d29d9a0f
commit c6dd25a119
7 changed files with 149 additions and 13 deletions

View File

@@ -1,8 +1,6 @@
package org.thoughtcrime.securesms.util;
import android.text.TextUtils;
import java.util.regex.Pattern;
public class DelimiterUtil {
@@ -16,7 +14,7 @@ public class DelimiterUtil {
}
public static String[] split(String value, char delimiter) {
if (TextUtils.isEmpty(value)) {
if (value == null || value.length() == 0) {
return new String[0];
} else {
String regex = "(?<!\\\\)" + Pattern.quote(delimiter + "");