Simplify some code.

This commit is contained in:
John Preston 2022-12-14 11:53:36 +04:00
parent bd1d7f4d96
commit ca1c826c5c
2 changed files with 2 additions and 2 deletions

View File

@ -76,7 +76,7 @@ void ForumIcons::updateDefault(const MTPDmessages_stickerSet &data) {
const auto &list = data.vdocuments().v;
_default.clear();
_default.reserve(list.size());
for (const auto &sticker : data.vdocuments().v) {
for (const auto &sticker : list) {
_default.push_back(_owner->processDocument(sticker)->id);
}
_defaultUpdated.fire({});

View File

@ -728,7 +728,7 @@ SessionController::SessionController(
, _defaultChatTheme(std::make_shared<Ui::ChatTheme>())
, _chatStyle(std::make_unique<Ui::ChatStyle>())
, _cachedReactionIconFactory(std::make_unique<ReactionIconFactory>())
, _giftPremiumValidator(GiftPremiumValidator(this)) {
, _giftPremiumValidator(this) {
init();
_chatStyleTheme = _defaultChatTheme;