MCPcopy Create free account
hub / github.com/TDesktop-x64/tdesktop / parseChatThemes

Method parseChatThemes

Telegram/SourceFiles/data/data_cloud_themes.cpp:729–735  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

727}
728
729void 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
737void CloudThemes::checkCurrentTheme() {
738 const auto &object = Window::Theme::Background()->themeObject();

Callers

nothing calls this directly

Calls 3

ParseFunction · 0.70
clearMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected