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)) {
RegenerateParticipants(state, small, large);
pushNext();
} else if (peers.empty()) {
pushNext();
}
}, lifetime);

View File

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