mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Everywhere TextWithTags and TextWithEntities are used.
Copy tags from messages to clipboard, to drag mime data. Sorting entities while processing (links, monospace, mentions).
This commit is contained in:
@@ -898,9 +898,11 @@ bool Document::updateStatusText() const {
|
||||
Link::Link(HistoryMedia *media, HistoryItem *parent) : ItemBase(parent) {
|
||||
AddComponents(Info::Bit());
|
||||
|
||||
QString text = _parent->originalText(), mainUrl;
|
||||
EntitiesInText entities = _parent->originalEntities();
|
||||
const auto textWithEntities = _parent->originalText();
|
||||
QString mainUrl;
|
||||
|
||||
auto text = textWithEntities.text;
|
||||
auto &entities = textWithEntities.entities;
|
||||
int32 from = 0, till = text.size(), lnk = entities.size();
|
||||
for_const (const auto &entity, entities) {
|
||||
auto type = entity.type();
|
||||
|
Reference in New Issue
Block a user