mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +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() {
|
HistoryWidget::~HistoryWidget() {
|
||||||
if (_history) {
|
if (_history) {
|
||||||
|
// Saving a draft on account switching.
|
||||||
|
saveFieldToHistoryLocalDraft();
|
||||||
|
session().api().saveDraftToCloudDelayed(_history);
|
||||||
|
|
||||||
clearAllLoadRequests();
|
clearAllLoadRequests();
|
||||||
}
|
}
|
||||||
setTabbedPanel(nullptr);
|
setTabbedPanel(nullptr);
|
||||||
|
|
Loading…
Add table
Reference in a new issue