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

Load local stickers / gifs in Session().

This commit is contained in:
John Preston
2020-06-24 16:52:06 +04:00
parent 0bc2bfe630
commit 28cafb129e
2 changed files with 16 additions and 18 deletions

View File

@@ -352,27 +352,11 @@ MainWidget::MainWidget(
checker.start();
}
auto &api = session().api();
api.requestNotifySettings(MTP_inputNotifyUsers());
api.requestNotifySettings(MTP_inputNotifyChats());
api.requestNotifySettings(MTP_inputNotifyBroadcasts());
cSetOtherOnline(0);
session().user()->loadUserpic();
auto &local = session().local();
local.readInstalledStickers();
local.readFeaturedStickers();
local.readRecentStickers();
local.readFavedStickers();
local.readSavedGifs();
auto &data = session().data();
if (const auto availableAt = local.readExportSettings().availableAt) {
data.suggestStartExport(availableAt);
if (const auto availableAt = session().local().readExportSettings().availableAt) {
session().data().suggestStartExport(availableAt);
}
auto &stickers = data.stickers();
stickers.notifyUpdated();
stickers.notifySavedGifsUpdated();
_history->start();