mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 22:55:00 +00:00
Rename TelegramCore source folder
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
import Foundation
|
||||
#if os(macOS)
|
||||
import PostboxMac
|
||||
import TelegramApiMac
|
||||
#else
|
||||
import Postbox
|
||||
import TelegramApi
|
||||
#endif
|
||||
|
||||
import SyncCore
|
||||
|
||||
extension RestrictionRule {
|
||||
convenience init(apiReason: Api.RestrictionReason) {
|
||||
switch apiReason {
|
||||
case let .restrictionReason(platform, reason, text):
|
||||
self.init(platform: platform, reason: reason, text: text)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
extension PeerAccessRestrictionInfo {
|
||||
convenience init(apiReasons: [Api.RestrictionReason]) {
|
||||
self.init(rules: apiReasons.map(RestrictionRule.init(apiReason:)))
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user