mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
Rename TelegramCore source folder
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
import Foundation
|
||||
#if os(macOS)
|
||||
import PostboxMac
|
||||
import TelegramApiMac
|
||||
#else
|
||||
import Postbox
|
||||
import TelegramApi
|
||||
#endif
|
||||
|
||||
import SyncCore
|
||||
|
||||
extension TelegramChatAdminRights {
|
||||
init(apiAdminRights: Api.ChatAdminRights) {
|
||||
switch apiAdminRights {
|
||||
case let .chatAdminRights(flags):
|
||||
self.init(flags: TelegramChatAdminRightsFlags(rawValue: flags))
|
||||
}
|
||||
}
|
||||
|
||||
var apiAdminRights: Api.ChatAdminRights {
|
||||
return .chatAdminRights(flags: self.flags.rawValue)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user