mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Clear draft that failed to be saved.
This commit is contained in:
parent
ac3834bfdb
commit
7866013ab6
1 changed files with 1 additions and 0 deletions
|
@ -2134,6 +2134,7 @@ void ApiWrap::saveDraftsToCloud() {
|
||||||
if (const auto cloudDraft = history->cloudDraft(topicRootId)) {
|
if (const auto cloudDraft = history->cloudDraft(topicRootId)) {
|
||||||
if (cloudDraft->saveRequestId == requestId) {
|
if (cloudDraft->saveRequestId == requestId) {
|
||||||
history->clearCloudDraft(topicRootId);
|
history->clearCloudDraft(topicRootId);
|
||||||
|
history->applyCloudDraft(topicRootId);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
const auto i = _draftsSaveRequestIds.find(weak);
|
const auto i = _draftsSaveRequestIds.find(weak);
|
||||||
|
|
Loading…
Add table
Reference in a new issue