2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Refresh wallpaper file references.

This commit is contained in:
John Preston
2019-01-16 22:03:04 +04:00
parent 466c6da5e3
commit e59a68cd68
4 changed files with 33 additions and 3 deletions

View File

@@ -2829,6 +2829,8 @@ void ApiWrap::refreshFileReference(
request(
MTPmessages_GetSavedGifs(MTP_int(0)),
[] { crl::on_main([] { Local::writeSavedGifs(); }); });
}, [&](Data::FileOriginWallpapers data) {
request(MTPaccount_GetWallPapers(MTP_int(0)));
}, [&](std::nullopt_t) {
fail();
});