2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +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:
John Preston
2019-04-08 19:10:06 +04:00
parent 0f0c3b7461
commit b5be6df5e2
64 changed files with 772 additions and 647 deletions

View File

@@ -252,11 +252,11 @@ void SetupRows(
return username;
}
auto result = TextWithEntities{ add };
result.entities.push_back(EntityInText(
EntityInTextCustomUrl,
result.entities.push_back({
EntityType::CustomUrl,
0,
add.size(),
"internal:edit_username"));
"internal:edit_username" });
return result;
});
AddRow(