From 08888d5eade84f64c1f23b8c7febfbb08d05a4e4 Mon Sep 17 00:00:00 2001 From: levlam Date: Thu, 2 Nov 2023 14:25:40 +0300 Subject: [PATCH] Don't forget old colors. --- td/telegram/ThemeManager.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/td/telegram/ThemeManager.cpp b/td/telegram/ThemeManager.cpp index 0d143424a..eeafa142c 100644 --- a/td/telegram/ThemeManager.cpp +++ b/td/telegram/ThemeManager.cpp @@ -244,9 +244,6 @@ void ThemeManager::on_update_accent_colors(FlatHashMap accent_color_ids) { auto are_equal = [](const FlatHashMap, AccentColorIdHash> &lhs, const FlatHashMap, AccentColorIdHash> &rhs) { - if (lhs.size() != rhs.size()) { - return false; - } for (auto &lhs_it : lhs) { auto rhs_it = rhs.find(lhs_it.first); if (rhs_it == rhs.end() || rhs_it->second != lhs_it.second) { @@ -259,8 +256,12 @@ void ThemeManager::on_update_accent_colors(FlatHashMap