2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Made more rpl-friendly balance label in channel profile.

This commit is contained in:
23rd
2025-05-06 22:06:08 +03:00
parent 53cee177e8
commit 6bd0bf6e69
4 changed files with 56 additions and 20 deletions

View File

@@ -1360,7 +1360,8 @@ void ApplyChannelUpdate(
channel->setWallPaper({});
}
if (channel->flags() & Flag::CanViewRevenue) {
if ((channel->flags() & Flag::CanViewRevenue)
|| (channel->flags() & Flag::CanViewCreditsRevenue)) {
static constexpr auto kTimeout = crl::time(60000);
const auto id = channel->id;
const auto weak = base::make_weak(&channel->session());