mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-27 07:52:09 +00:00
Improve premium sticker sync / preview.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user