mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-04 08:25:38 +00:00
Added ability to emplace badge in dialog row for subscribed channels.
This commit is contained in:
@@ -508,6 +508,10 @@ bool ChannelHasActiveCall(not_null<ChannelData*> channel) {
|
||||
return (channel->flags() & ChannelDataFlag::CallNotEmpty);
|
||||
}
|
||||
|
||||
bool ChannelHasSubscriptionUntilDate(ChannelData *channel) {
|
||||
return channel && channel->subscriptionUntilDate() > 0;
|
||||
}
|
||||
|
||||
rpl::producer<QImage> PeerUserpicImageValue(
|
||||
not_null<PeerData*> peer,
|
||||
int size,
|
||||
|
Reference in New Issue
Block a user