Fixed edge skips in list of actions from info profile.

This commit is contained in:
23rd
2025-11-17 14:46:03 +03:00
parent 6d469509a4
commit 662b862d2f
2 changed files with 6 additions and 4 deletions

View File

@@ -1359,6 +1359,8 @@ object_ptr<Ui::RpWidget> DetailsFiller::setupInfo() {
_mainTracker.track(wrap.data());
const auto result = wrap->entity();
auto tracker = Ui::MultiSlideTracker();
add(CreateSlideSkipWidget(wrap))->toggleOn(
tracker.atLeastOneShownValueLater());
// Fill context for a mention / hashtag / bot command link.
const auto infoClickFilter = [=,
@@ -2206,8 +2208,8 @@ object_ptr<Ui::RpWidget> DetailsFiller::fill() {
if (const auto user = _sublist ? nullptr : _peer->asUser()) {
add(setupPersonalChannel(user));
}
add(CreateSlideSkipWidget(_wrap))->toggleOn(
_mainTracker.atLeastOneShownValue());
// add(CreateSlideSkipWidget(_wrap))->toggleOn(
// _mainTracker.atLeastOneShownValueLater());
add(setupInfo());
auto lastButtonTracker = Ui::MultiSlideTracker();
if (const auto user = _peer->asUser()) {
@@ -2249,7 +2251,7 @@ object_ptr<Ui::RpWidget> DetailsFiller::fill() {
}
}
add(CreateSlideSkipWidget(_wrap))->toggleOn(
lastButtonTracker.atLeastOneShownValue());
lastButtonTracker.atLeastOneShownValueLater());
return std::move(_wrap);
}