Clear draft that failed to be saved.

This commit is contained in:
John Preston 2022-11-29 17:32:38 +04:00
parent ac3834bfdb
commit 7866013ab6
1 changed files with 1 additions and 0 deletions

View File

@ -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);