diff --git a/td/telegram/AudiosManager.hpp b/td/telegram/AudiosManager.hpp index 9b437d0f..3db5c71d 100644 --- a/td/telegram/AudiosManager.hpp +++ b/td/telegram/AudiosManager.hpp @@ -40,7 +40,7 @@ FileId AudiosManager::parse_audio(T &parser) { parse(audio->performer, parser); parse(audio->thumbnail, parser); parse(audio->file_id, parser); - return on_get_audio(std::move(audio), true); + return on_get_audio(std::move(audio), false); } } // namespace td diff --git a/td/telegram/DocumentsManager.hpp b/td/telegram/DocumentsManager.hpp index b57ee2c5..5c28493d 100644 --- a/td/telegram/DocumentsManager.hpp +++ b/td/telegram/DocumentsManager.hpp @@ -36,7 +36,7 @@ FileId DocumentsManager::parse_document(T &parser) { parse(document->thumbnail, parser); parse(document->file_id, parser); LOG(DEBUG) << "Parsed document " << document->file_id; - return on_get_document(std::move(document), true); + return on_get_document(std::move(document), false); } } // namespace td diff --git a/td/telegram/StickersManager.hpp b/td/telegram/StickersManager.hpp index b3ffe797..a24a256f 100644 --- a/td/telegram/StickersManager.hpp +++ b/td/telegram/StickersManager.hpp @@ -88,7 +88,7 @@ FileId StickersManager::parse_sticker(bool in_sticker_set, T &parser) { parse(sticker->y_shift, parser); parse(sticker->scale, parser); } - return on_get_sticker(std::move(sticker), true); + return on_get_sticker(std::move(sticker), false); // data in the database is always outdated } template diff --git a/td/telegram/VideoNotesManager.hpp b/td/telegram/VideoNotesManager.hpp index df77f731..3de070f8 100644 --- a/td/telegram/VideoNotesManager.hpp +++ b/td/telegram/VideoNotesManager.hpp @@ -34,7 +34,7 @@ FileId VideoNotesManager::parse_video_note(T &parser) { parse(video_note->dimensions, parser); parse(video_note->thumbnail, parser); parse(video_note->file_id, parser); - return on_get_video_note(std::move(video_note), true); + return on_get_video_note(std::move(video_note), false); } } // namespace td diff --git a/td/telegram/VideosManager.hpp b/td/telegram/VideosManager.hpp index d2679755..fc682b1b 100644 --- a/td/telegram/VideosManager.hpp +++ b/td/telegram/VideosManager.hpp @@ -52,7 +52,7 @@ FileId VideosManager::parse_video(T &parser) { if (video->has_stickers) { parse(video->sticker_file_ids, parser); } - return on_get_video(std::move(video), true); + return on_get_video(std::move(video), false); } } // namespace td diff --git a/td/telegram/VoiceNotesManager.hpp b/td/telegram/VoiceNotesManager.hpp index 6165f426..87165afb 100644 --- a/td/telegram/VoiceNotesManager.hpp +++ b/td/telegram/VoiceNotesManager.hpp @@ -33,7 +33,7 @@ FileId VoiceNotesManager::parse_voice_note(T &parser) { parse(voice_note->duration, parser); parse(voice_note->waveform, parser); parse(voice_note->file_id, parser); - return on_get_voice_note(std::move(voice_note), true); + return on_get_voice_note(std::move(voice_note), false); } } // namespace td