Skip to content

Commit 2391a60

Browse files
author
Kondra007
committed
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).
1 parent 6033ee2 commit 2391a60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

TMessagesProj/src/main/java/org/telegram/messenger/MessageObject.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -782,7 +782,7 @@ public static void addLinks(CharSequence messageText) {
782782

783783
public static void addLinks(CharSequence messageText, boolean botCommands) {
784784
if (messageText instanceof Spannable && containsUrls(messageText)) {
785-
if (messageText.length() < 100) {
785+
if (messageText.length() < 200) {
786786
try {
787787
Linkify.addLinks((Spannable) messageText, Linkify.WEB_URLS | Linkify.PHONE_NUMBERS);
788788
} catch (Exception e) {

0 commit comments

Comments
 (0)