Fix "Nobody Viewed / Watched / Listened" seen state.

This commit is contained in:
John Preston 2021-09-27 18:51:50 +04:00
parent 37d940eca6
commit a228c62286
2 changed files with 4 additions and 1 deletions

View file

@ -355,6 +355,8 @@ rpl::producer<Ui::WhoReadContent> WhoRead(
} else if (UpdateUserpics(state, item, peers)) { } else if (UpdateUserpics(state, item, peers)) {
RegenerateParticipants(state, small, large); RegenerateParticipants(state, small, large);
pushNext(); pushNext();
} else if (peers.empty()) {
pushNext();
} }
}, lifetime); }, lifetime);

View file

@ -214,7 +214,8 @@ Action::Action(
content content
) | rpl::start_with_next([=](WhoReadContent &&content) { ) | rpl::start_with_next([=](WhoReadContent &&content) {
checkAppeared(); checkAppeared();
const auto changed = (_content.participants != content.participants); const auto changed = (_content.participants != content.participants)
|| (_content.unknown != content.unknown);
_content = content; _content = content;
if (changed) { if (changed) {
PostponeCall(this, [=] { populateSubmenu(); }); PostponeCall(this, [=] { populateSubmenu(); });