mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 14:17:12 +02:00
Added drafts saving on account switching.
This commit is contained in:
parent
b3622b413e
commit
76eb00cea9
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue