mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 22:54:01 +02:00
Fix "Nobody Viewed / Watched / Listened" seen state.
This commit is contained in:
parent
37d940eca6
commit
a228c62286
2 changed files with 4 additions and 1 deletions
|
@ -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);
|
||||||
|
|
||||||
|
|
|
@ -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(); });
|
||||||
|
|
Loading…
Add table
Reference in a new issue