From 7866013ab61bbdcb06140cdb1c457f0373754f10 Mon Sep 17 00:00:00 2001 From: John Preston Date: Tue, 29 Nov 2022 17:32:38 +0400 Subject: [PATCH] Clear draft that failed to be saved. --- Telegram/SourceFiles/apiwrap.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Telegram/SourceFiles/apiwrap.cpp b/Telegram/SourceFiles/apiwrap.cpp index 94092403c6..639c75d7fe 100644 --- a/Telegram/SourceFiles/apiwrap.cpp +++ b/Telegram/SourceFiles/apiwrap.cpp @@ -2134,6 +2134,7 @@ 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);