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:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user