mirror of
https://github.com/telegramdesktop/tdesktop
synced 2024-12-28 09:32:56 +00:00
parent
2bd8737410
commit
364aaaae5b
@ -268,7 +268,9 @@ void StickersListWidget::Footer::validateSelectedIcon(
|
||||
ValidateIconAnimations animations) {
|
||||
auto newSelected = 0;
|
||||
for (auto i = 0, l = _icons.size(); i != l; ++i) {
|
||||
if (_icons[i].setId == setId) {
|
||||
if (_icons[i].setId == setId
|
||||
|| (_icons[i].setId == Stickers::FavedSetId
|
||||
&& setId == Stickers::RecentSetId)) {
|
||||
newSelected = i;
|
||||
break;
|
||||
}
|
||||
@ -2009,7 +2011,7 @@ void StickersListWidget::fillIcons(QList<StickerIcon> &icons) {
|
||||
}
|
||||
if (i != _mySets.size() && _mySets[i].id == Stickers::RecentSetId) {
|
||||
++i;
|
||||
if (!icons.empty() && icons.back().setId != Stickers::FavedSetId) {
|
||||
if (icons.empty() || icons.back().setId != Stickers::FavedSetId) {
|
||||
icons.push_back(StickerIcon(Stickers::RecentSetId));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user