mirror of
https://github.com/oxen-io/session-android.git
synced 2025-12-03 14:52:20 +00:00
Split into library project and add shared preferences layer of indirection.
This commit is contained in:
@@ -10,9 +10,7 @@ public class Tag {
|
||||
|
||||
public static final String WHITESPACE_TAG = " ";
|
||||
|
||||
public static boolean isTaggable(Context context, String message) {
|
||||
SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(context);
|
||||
|
||||
public static boolean isTaggable(String message) {
|
||||
return message.matches(".*[^\\s].*") &&
|
||||
message.replaceAll("\\s+$", "").length() + WHITESPACE_TAG.length() <= 158;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user