Added drafts saving on account switching.

This commit is contained in:
23rd 2021-08-11 13:45:42 +03:00
parent b3622b413e
commit 76eb00cea9

View file

@ -6970,6 +6970,10 @@ void HistoryWidget::synteticScrollToY(int y) {
HistoryWidget::~HistoryWidget() {
if (_history) {
// Saving a draft on account switching.
saveFieldToHistoryLocalDraft();
session().api().saveDraftToCloudDelayed(_history);
clearAllLoadRequests();
}
setTabbedPanel(nullptr);