Stars subscriptions

This commit is contained in:
Ilya Laktyushin
2024-08-06 22:40:17 +02:00
parent 4a0d46047c
commit df311bb022
36 changed files with 767 additions and 239 deletions

View File

@@ -191,6 +191,15 @@ public extension Peer {
}
}
var isSubscription: Bool {
switch self {
case let channel as TelegramChannel:
return channel.subscriptionUntilDate != nil
default:
return false
}
}
var isCloseFriend: Bool {
switch self {
case let user as TelegramUser: