Skip to content

Commit 668fea4

Browse files
author
Andrey Startsev
committed
Make phone numbers in media captions clickable
1 parent 6033ee2 commit 668fea4

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
@@ -737,7 +737,7 @@ public void generateCaption() {
737737
caption = Emoji.replaceEmoji(messageOwner.media.caption, textPaint.getFontMetricsInt(), AndroidUtilities.dp(20), false);
738738
if (containsUrls(caption)) {
739739
try {
740-
Linkify.addLinks((Spannable) caption, Linkify.WEB_URLS);
740+
Linkify.addLinks((Spannable) caption, Linkify.WEB_URLS | Linkify.PHONE_NUMBERS);
741741
} catch (Exception e) {
742742
FileLog.e("tmessages", e);
743743
}

0 commit comments

Comments
 (0)