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

Improve editing messages with webpage previews.

This commit is contained in:
John Preston
2023-10-26 10:26:06 +04:00
parent c035ec6917
commit 3b91e2dee4
7 changed files with 54 additions and 21 deletions

View File

@@ -2158,7 +2158,9 @@ void ApiWrap::saveDraftsToCloud() {
history->peer->input,
MTP_string(textWithTags.text),
entities,
Data::WebPageForMTP(cloudDraft->webpage)
Data::WebPageForMTP(
cloudDraft->webpage,
textWithTags.text.isEmpty())
)).done([=](const MTPBool &result, const MTP::Response &response) {
const auto requestId = response.requestId;
history->finishSavingCloudDraft(