Commit 2391a60a authored by Kondra007's avatar Kondra007

Increase limit to linkify phone numbers from 100 to 200

100 symbols is too few to make sending phone cards (not telegram users' cards, but any phone cards).
parent 6033ee2f
...@@ -782,7 +782,7 @@ public class MessageObject { ...@@ -782,7 +782,7 @@ public class MessageObject {
public static void addLinks(CharSequence messageText, boolean botCommands) { public static void addLinks(CharSequence messageText, boolean botCommands) {
if (messageText instanceof Spannable && containsUrls(messageText)) { if (messageText instanceof Spannable && containsUrls(messageText)) {
if (messageText.length() < 100) { if (messageText.length() < 200) {
try { try {
Linkify.addLinks((Spannable) messageText, Linkify.WEB_URLS | Linkify.PHONE_NUMBERS); Linkify.addLinks((Spannable) messageText, Linkify.WEB_URLS | Linkify.PHONE_NUMBERS);
} catch (Exception e) { } catch (Exception e) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment