2
0
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:
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

@@ -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,