2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Don't unload emoji sets.

Fixes #24933.
This commit is contained in:
John Preston
2022-08-15 15:40:11 +03:00
parent e05f570e1a
commit 2c0a38d356
7 changed files with 21 additions and 19 deletions

View File

@@ -1030,6 +1030,8 @@ void StickersBox::saveChanges() {
void StickersBox::setInnerFocus() {
if (_megagroupSet) {
_installed.widget()->setInnerFocus();
} else {
BoxContent::setInnerFocus();
}
}
@@ -1075,7 +1077,8 @@ StickersBox::Inner::Row::~Row() {
const auto featured = !!(set->flags & SetFlag::Featured);
const auto special = !!(set->flags & SetFlag::Special);
const auto archived = !!(set->flags & SetFlag::Archived);
if (!installed && !featured && !special && !archived) {
const auto emoji = !!(set->flags & SetFlag::Emoji);
if (!installed && !featured && !special && !archived && !emoji) {
auto &sets = set->owner().stickers().setsRef();
if (const auto i = sets.find(set->id); i != end(sets)) {
sets.erase(i);