From 2391a60adaec140031fb692f626f19b98829fa09 Mon Sep 17 00:00:00 2001 From: Kondra007 Date: Mon, 4 Jan 2016 15:33:40 +0300 Subject: [PATCH] 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). --- .../src/main/java/org/telegram/messenger/MessageObject.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TMessagesProj/src/main/java/org/telegram/messenger/MessageObject.java b/TMessagesProj/src/main/java/org/telegram/messenger/MessageObject.java index a505091e1..e43992a39 100644 --- a/TMessagesProj/src/main/java/org/telegram/messenger/MessageObject.java +++ b/TMessagesProj/src/main/java/org/telegram/messenger/MessageObject.java @@ -782,7 +782,7 @@ public class MessageObject { public static void addLinks(CharSequence messageText, boolean botCommands) { if (messageText instanceof Spannable && containsUrls(messageText)) { - if (messageText.length() < 100) { + if (messageText.length() < 200) { try { Linkify.addLinks((Spannable) messageText, Linkify.WEB_URLS | Linkify.PHONE_NUMBERS); } catch (Exception e) {