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

Add search in GIFs to EmojiPanel.

This commit is contained in:
John Preston
2017-03-31 18:50:02 +03:00
parent 0690c4f98c
commit e8ed307278
18 changed files with 480 additions and 478 deletions

View File

@@ -1138,7 +1138,7 @@ namespace {
if (saved.size() > Global::SavedGifsLimit()) saved.pop_back();
Local::writeSavedGifs();
if (App::main()) emit App::main()->savedGifsUpdated();
AuthSession::Current().data().savedGifsUpdated().notify();
cSetLastSavedGifsUpdate(0);
App::main()->updateStickers();
}
@@ -1146,8 +1146,8 @@ namespace {
void checkSavedGif(HistoryItem *item) {
if (!item->Has<HistoryMessageForwarded>() && (item->out() || item->history()->peer == App::self())) {
if (HistoryMedia *media = item->getMedia()) {
if (DocumentData *doc = media->getDocument()) {
if (auto media = item->getMedia()) {
if (auto doc = media->getDocument()) {
if (doc->isGifv()) {
addSavedGif(doc);
}