2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Move updates handling MainWidget -> Api::Updates.

This commit is contained in:
John Preston
2020-06-11 13:41:03 +04:00
parent ee43027bea
commit 0b028b959b
30 changed files with 2526 additions and 2218 deletions

View File

@@ -37,6 +37,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "storage/localstorage.h"
#include "storage/storage_facade.h"
#include "storage/storage_shared_media.h"
#include "storage/storage_account.h"
//#include "storage/storage_feed_messages.h" // #feed
#include "support/support_helper.h"
#include "ui/image/image.h"
@@ -336,7 +337,7 @@ void History::clearEditDraft() {
void History::draftSavedToCloud() {
updateChatListEntry();
if (App::main()) App::main()->writeDrafts(this);
session().local().writeDrafts(this);
}
HistoryItemsList History::validateForwardDraft() {
@@ -1760,6 +1761,7 @@ void History::outboxRead(MsgId upTo) {
}
}
updateChatListEntry();
session().data().historyOutboxRead(this);
}
void History::outboxRead(not_null<const HistoryItem*> wasRead) {