From 315549b5f8c90809619100d61164120dd40117f5 Mon Sep 17 00:00:00 2001 From: John Preston Date: Tue, 28 Sep 2021 23:48:37 +0400 Subject: [PATCH] Beta version 3.1.5: Fix build on Linux. --- .../ui/chat/choose_theme_controller.cpp | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/Telegram/SourceFiles/ui/chat/choose_theme_controller.cpp b/Telegram/SourceFiles/ui/chat/choose_theme_controller.cpp index f78a332d9b..beadbd4c20 100644 --- a/Telegram/SourceFiles/ui/chat/choose_theme_controller.cpp +++ b/Telegram/SourceFiles/ui/chat/choose_theme_controller.cpp @@ -259,21 +259,6 @@ void ChooseThemeController::initButtons() { apply->moveToRight(left, 0); }, controls->lifetime()); - const auto changed = [=] { - if (_chosen.isEmpty()) { - return false; - } - const auto now = Ui::Emoji::Find(_peer->themeEmoji()); - if (_chosen == kDisableElement.utf16()) { - return !now; - } - for (const auto &entry : _entries) { - if (entry.id && entry.emoji->text() == _chosen) { - return (now != entry.emoji); - } - } - return false; - }; cancel->setClickedCallback([=] { close(); }); apply->setClickedCallback([=] { if (const auto chosen = findChosen()) {