| 727 | } |
| 728 | |
| 729 | void CloudThemes::parseChatThemes(const QVector<MTPTheme> &list) { |
| 730 | _chatThemes.clear(); |
| 731 | _chatThemes.reserve(list.size()); |
| 732 | for (const auto &theme : list) { |
| 733 | _chatThemes.push_back(CloudTheme::Parse(_session, theme, true)); |
| 734 | } |
| 735 | } |
| 736 | |
| 737 | void CloudThemes::checkCurrentTheme() { |
| 738 | const auto &object = Window::Theme::Background()->themeObject(); |