mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-10-09 11:23:48 +00:00
unwrap value
This commit is contained in:
parent
6b65571ca1
commit
64ccf14ba2
@ -1089,6 +1089,15 @@ public final class CachedUserData: CachedPeerData {
|
||||
public enum LinkedBotChannelId: Equatable {
|
||||
case unknown
|
||||
case known(PeerId?)
|
||||
|
||||
public var value: PeerId? {
|
||||
switch self {
|
||||
case .unknown:
|
||||
return nil
|
||||
case let .known(peerId):
|
||||
return peerId
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public let about: String?
|
||||
|
Loading…
x
Reference in New Issue
Block a user