mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-03-11 08:48:14 +00:00
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;
|
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…
Reference in New Issue
Block a user