2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-03 07:56:03 +00:00

Added ability to emplace badge in dialog row for subscribed channels.

This commit is contained in:
23rd
2024-08-11 13:40:43 +03:00
committed by John Preston
parent 81a79e2895
commit dca61541d6
7 changed files with 42 additions and 11 deletions

View File

@@ -880,6 +880,8 @@ not_null<PeerData*> Session::processChat(const MTPChat &data) {
const auto wasCallNotEmpty = Data::ChannelHasActiveCall(channel);
channel->updateLevelHint(data.vlevel().value_or_empty());
channel->updateSubscriptionUntilDate(
data.vsubscription_until_date().value_or_empty());
if (const auto count = data.vparticipants_count()) {
channel->setMembersCount(count->v);
}