mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-24 07:05:35 +00:00
Stars subscriptions
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user