mirror of
https://github.com/DrKLO/Telegram.git
synced 2024-12-22 06:25:14 +01:00
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).
This commit is contained in:
parent
6033ee2f5c
commit
2391a60ada
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue