diff --git a/Telegram/SourceFiles/boxes/peer_list_box.h b/Telegram/SourceFiles/boxes/peer_list_box.h index 0490bd320..1c378b8fc 100644 --- a/Telegram/SourceFiles/boxes/peer_list_box.h +++ b/Telegram/SourceFiles/boxes/peer_list_box.h @@ -138,7 +138,7 @@ public: LastSeen, Custom, }; - virtual void refreshStatus(); + void refreshStatus(); crl::time refreshStatusTime() const; void setAbsoluteIndex(int index) { diff --git a/Telegram/SourceFiles/boxes/peers/edit_participants_box.cpp b/Telegram/SourceFiles/boxes/peers/edit_participants_box.cpp index 398b80c79..ba9c5f61d 100644 --- a/Telegram/SourceFiles/boxes/peers/edit_participants_box.cpp +++ b/Telegram/SourceFiles/boxes/peers/edit_participants_box.cpp @@ -1800,12 +1800,6 @@ std::unique_ptr ParticipantsBoxController::createRow( || _additional.canEditAdmin(user))) { row->setActionLink(tr::lng_profile_kick(tr::now)); } - if (_role == Role::Members && user->isBot()) { - auto seesAllMessages = (user->botInfo->readsAllHistory || _additional.adminRights(user).has_value()); - row->setCustomStatus(seesAllMessages - ? tr::lng_status_bot_reads_all(tr::now) - : tr::lng_status_bot_not_reads_all(tr::now)); - } } return row; } diff --git a/Telegram/SourceFiles/calls/calls_box_controller.cpp b/Telegram/SourceFiles/calls/calls_box_controller.cpp index b3e15171f..22eceb6ab 100644 --- a/Telegram/SourceFiles/calls/calls_box_controller.cpp +++ b/Telegram/SourceFiles/calls/calls_box_controller.cpp @@ -110,7 +110,7 @@ public: bool actionSelected) override; private: - void refreshStatus() override; + void refreshStatus(); static Type ComputeType(not_null item); std::vector> _items; diff --git a/Telegram/SourceFiles/info/profile/info_profile_members_controllers.cpp b/Telegram/SourceFiles/info/profile/info_profile_members_controllers.cpp index ef5dc2234..ef3c38654 100644 --- a/Telegram/SourceFiles/info/profile/info_profile_members_controllers.cpp +++ b/Telegram/SourceFiles/info/profile/info_profile_members_controllers.cpp @@ -85,17 +85,6 @@ void MemberListRow::paintAdminRank( p.drawTextLeft(x, y, outerWidth, _type.adminRank, adminRankWidth()); } -void MemberListRow::refreshStatus() { - if (user()->isBot()) { - auto seesAllMessages = (user()->botInfo->readsAllHistory || _type.rights != Rights::Normal); - setCustomStatus(seesAllMessages - ? tr::lng_status_bot_reads_all(tr::now) - : tr::lng_status_bot_not_reads_all(tr::now)); - } else { - PeerListRow::refreshStatus(); - } -} - std::unique_ptr CreateMembersController( not_null navigation, not_null peer) { diff --git a/Telegram/SourceFiles/info/profile/info_profile_members_controllers.h b/Telegram/SourceFiles/info/profile/info_profile_members_controllers.h index 0aa2f011d..2db859794 100644 --- a/Telegram/SourceFiles/info/profile/info_profile_members_controllers.h +++ b/Telegram/SourceFiles/info/profile/info_profile_members_controllers.h @@ -47,7 +47,6 @@ public: int y, int outerWidth, bool selected) override; - void refreshStatus() override; not_null user() const; bool canRemove() const {