2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Strip auto-hashtag in support mode message editing.

This commit is contained in:
John Preston
2019-06-05 21:40:21 +03:00
parent 126ffc8769
commit 8c67a4b991
4 changed files with 45 additions and 16 deletions

View File

@@ -75,11 +75,7 @@ EditCaptionBox::EditCaptionBox(
}
doc = document;
}
const auto original = item->originalText();
const auto editData = TextWithTags {
original.text,
ConvertEntitiesToTextTags(original.entities)
};
const auto editData = PrepareEditText(item);
if (!_animated && (dimensions.isEmpty() || doc || !image)) {
if (!image) {