mirror of
https://github.com/oxen-io/session-android.git
synced 2025-12-03 09:12:19 +00:00
merge liliakai-settings
This commit is contained in:
@@ -13,8 +13,7 @@ public class Tag {
|
||||
public static boolean isTaggable(Context context, String message) {
|
||||
SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(context);
|
||||
|
||||
return sp.getBoolean(ApplicationPreferencesActivity.WHITESPACE_PREF, true) &&
|
||||
message.matches(".*[^\\s].*") &&
|
||||
return message.matches(".*[^\\s].*") &&
|
||||
message.replaceAll("\\s+$", "").length() + WHITESPACE_TAG.length() <= 158;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user