From a228c6228623d7a65632ec494d9579177f8bd17d Mon Sep 17 00:00:00 2001 From: John Preston Date: Mon, 27 Sep 2021 18:51:50 +0400 Subject: [PATCH] Fix "Nobody Viewed / Watched / Listened" seen state. --- Telegram/SourceFiles/api/api_who_read.cpp | 2 ++ Telegram/SourceFiles/ui/controls/who_read_context_action.cpp | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/api/api_who_read.cpp b/Telegram/SourceFiles/api/api_who_read.cpp index 41934e09df..07d1ede611 100644 --- a/Telegram/SourceFiles/api/api_who_read.cpp +++ b/Telegram/SourceFiles/api/api_who_read.cpp @@ -355,6 +355,8 @@ rpl::producer WhoRead( } else if (UpdateUserpics(state, item, peers)) { RegenerateParticipants(state, small, large); pushNext(); + } else if (peers.empty()) { + pushNext(); } }, lifetime); diff --git a/Telegram/SourceFiles/ui/controls/who_read_context_action.cpp b/Telegram/SourceFiles/ui/controls/who_read_context_action.cpp index 462a20c12e..ab49cda799 100644 --- a/Telegram/SourceFiles/ui/controls/who_read_context_action.cpp +++ b/Telegram/SourceFiles/ui/controls/who_read_context_action.cpp @@ -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(); });