mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Simplify some code.
This commit is contained in:
parent
bd1d7f4d96
commit
ca1c826c5c
2 changed files with 2 additions and 2 deletions
|
@ -76,7 +76,7 @@ void ForumIcons::updateDefault(const MTPDmessages_stickerSet &data) {
|
||||||
const auto &list = data.vdocuments().v;
|
const auto &list = data.vdocuments().v;
|
||||||
_default.clear();
|
_default.clear();
|
||||||
_default.reserve(list.size());
|
_default.reserve(list.size());
|
||||||
for (const auto &sticker : data.vdocuments().v) {
|
for (const auto &sticker : list) {
|
||||||
_default.push_back(_owner->processDocument(sticker)->id);
|
_default.push_back(_owner->processDocument(sticker)->id);
|
||||||
}
|
}
|
||||||
_defaultUpdated.fire({});
|
_defaultUpdated.fire({});
|
||||||
|
|
|
@ -728,7 +728,7 @@ SessionController::SessionController(
|
||||||
, _defaultChatTheme(std::make_shared<Ui::ChatTheme>())
|
, _defaultChatTheme(std::make_shared<Ui::ChatTheme>())
|
||||||
, _chatStyle(std::make_unique<Ui::ChatStyle>())
|
, _chatStyle(std::make_unique<Ui::ChatStyle>())
|
||||||
, _cachedReactionIconFactory(std::make_unique<ReactionIconFactory>())
|
, _cachedReactionIconFactory(std::make_unique<ReactionIconFactory>())
|
||||||
, _giftPremiumValidator(GiftPremiumValidator(this)) {
|
, _giftPremiumValidator(this) {
|
||||||
init();
|
init();
|
||||||
|
|
||||||
_chatStyleTheme = _defaultChatTheme;
|
_chatStyleTheme = _defaultChatTheme;
|
||||||
|
|
Loading…
Add table
Reference in a new issue