mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
Removed display of empty placeholder for gifts when gifts are loaded.
This commit is contained in:
@@ -1449,6 +1449,8 @@ void AddGiftSelector(
|
||||
state->emptyPlaceholder->show();
|
||||
raw->resize(raw->width(), state->emptyPlaceholder->height());
|
||||
return;
|
||||
} else if (state->emptyPlaceholder) {
|
||||
state->emptyPlaceholder = nullptr;
|
||||
}
|
||||
|
||||
const auto rows = (count + state->perRow - 1) / state->perRow;
|
||||
@@ -1465,7 +1467,9 @@ void AddGiftSelector(
|
||||
) | rpl::start_with_next([=](uint64 showingId) {
|
||||
state->current = &state->lists[showingId];
|
||||
state->buttons.clear();
|
||||
state->emptyPlaceholder = nullptr;
|
||||
if (state->emptyPlaceholder) {
|
||||
state->emptyPlaceholder = nullptr;
|
||||
}
|
||||
state->delegate.emplace(session, showingId
|
||||
? GiftButtonMode::Full
|
||||
: GiftButtonMode::Minimal);
|
||||
|
||||
Reference in New Issue
Block a user