From 2d8fa7def0ec9378367281ae673ac5818df7c141 Mon Sep 17 00:00:00 2001 From: 23rd <23rd@vivaldi.net> Date: Fri, 3 Jul 2026 21:06:29 +0300 Subject: [PATCH] Added server sync of applied chat theme installation. --- Telegram/SourceFiles/data/data_cloud_themes.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/data/data_cloud_themes.cpp b/Telegram/SourceFiles/data/data_cloud_themes.cpp index 043b9cc249..3288c60edd 100644 --- a/Telegram/SourceFiles/data/data_cloud_themes.cpp +++ b/Telegram/SourceFiles/data/data_cloud_themes.cpp @@ -267,7 +267,9 @@ void CloudThemes::install() { auto &themeId = IsNightMode() ? _installedNightThemeId : _installedDayThemeId; - const auto cloudId = fields.documentId ? fields.id : uint64(0); + const auto cloudId = (fields.documentId || !fields.emoticon.isEmpty()) + ? fields.id + : uint64(0); if (themeId == cloudId) { return; }