Simplify some code.
This commit is contained in:
parent
bd1d7f4d96
commit
ca1c826c5c
|
@ -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({});
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue