mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Copy text with expanded links only to external.
Paste valid custom links in message field if copied from messages.
This commit is contained in:
@@ -276,11 +276,11 @@ object_ptr<Ui::RpWidget> DetailsFiller::setupInfo() {
|
||||
if (result.text.startsWith(remove)) {
|
||||
result.text.remove(0, remove.size());
|
||||
}
|
||||
result.entities.push_back(EntityInText(
|
||||
EntityInTextCustomUrl,
|
||||
result.entities.push_back({
|
||||
EntityType::CustomUrl,
|
||||
0,
|
||||
result.text.size(),
|
||||
link));
|
||||
link });
|
||||
}
|
||||
return result;
|
||||
});
|
||||
|
Reference in New Issue
Block a user