diff --git a/td/telegram/AnimationsManager.h b/td/telegram/AnimationsManager.h index f2c968c0f..01ffb3642 100644 --- a/td/telegram/AnimationsManager.h +++ b/td/telegram/AnimationsManager.h @@ -20,7 +20,7 @@ #include "td/utils/common.h" #include "td/utils/Status.h" -#include +#include "td/utils/FlatHashMap.h" namespace td { @@ -142,7 +142,7 @@ class AnimationsManager final : public Actor { Td *td_; ActorShared<> parent_; - std::unordered_map, FileIdHash> animations_; + FlatHashMap, FileIdHash> animations_; int32 saved_animations_limit_ = 200; vector saved_animation_ids_; diff --git a/td/telegram/AudiosManager.h b/td/telegram/AudiosManager.h index b962eac1e..886e4a499 100644 --- a/td/telegram/AudiosManager.h +++ b/td/telegram/AudiosManager.h @@ -15,7 +15,7 @@ #include "td/utils/buffer.h" #include "td/utils/common.h" -#include +#include "td/utils/FlatHashMap.h" namespace td { @@ -75,7 +75,7 @@ class AudiosManager { FileId on_get_audio(unique_ptr