mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-31 09:36:12 +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