Skip premium badge for Saved Messages.

This commit is contained in:
John Preston
2025-11-24 22:01:56 +04:00
parent c64ef1e20e
commit 23c0ff934f

View File

@@ -258,6 +258,11 @@ struct StatusFields {
[[nodiscard]] rpl::producer<Info::Profile::Badge::Content> ContentForPeer(
not_null<PeerData*> peer) {
using namespace Info::Profile;
if (peer->isSelf()
|| peer->isRepliesChat()
|| peer->isSavedHiddenAuthor()) {
return rpl::single(Badge::Content{});
}
return rpl::combine(
BadgeContentForPeer(peer),
VerifiedContentForPeer(peer)