From a7c4aea9ffb746a16ca17b2fb4f8207902aae595 Mon Sep 17 00:00:00 2001 From: John Preston Date: Mon, 2 Jan 2023 10:50:59 +0400 Subject: [PATCH] Revert "Clear draft that failed to be saved." This reverts commit 7866013ab61bbdcb06140cdb1c457f0373754f10. Loosing the current field text in case the server doesn't accept the draft is worse than showing some sticked draft in the list. We always can just hide the cloud draft in chats list in case you can't edit it really if there are reports about them. --- Telegram/SourceFiles/apiwrap.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/Telegram/SourceFiles/apiwrap.cpp b/Telegram/SourceFiles/apiwrap.cpp index f43d29808..48ed35483 100644 --- a/Telegram/SourceFiles/apiwrap.cpp +++ b/Telegram/SourceFiles/apiwrap.cpp @@ -2137,7 +2137,6 @@ void ApiWrap::saveDraftsToCloud() { if (const auto cloudDraft = history->cloudDraft(topicRootId)) { if (cloudDraft->saveRequestId == requestId) { history->clearCloudDraft(topicRootId); - history->applyCloudDraft(topicRootId); } } const auto i = _draftsSaveRequestIds.find(weak);