mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 06:07:06 +02:00
Revert "Clear draft that failed to be saved."
This reverts commit 7866013ab6
.
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.
This commit is contained in:
parent
1ba870a655
commit
a7c4aea9ff
1 changed files with 0 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue