Improve premium sticker sync / preview.

This commit is contained in:
John Preston
2022-05-18 14:18:17 +04:00
parent 3b5ec78f4f
commit ca731968ca
26 changed files with 492 additions and 54 deletions
@@ -1654,6 +1654,13 @@ void SessionController::pushLastUsedChatTheme(
}
}
not_null<Ui::ChatTheme*> SessionController::currentChatTheme() const {
if (const auto custom = content()->customChatTheme()) {
return custom;
}
return defaultChatTheme().get();
}
void SessionController::setChatStyleTheme(
const std::shared_ptr<Ui::ChatTheme> &theme) {
if (_chatStyleTheme.lock() == theme) {