mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-07-24 04:00:45 +00:00
Merge branch 'master' of gitlab.com:peter-iakovlev/telegram-ios
This commit is contained in:
commit
c94e050e58
@ -140,6 +140,9 @@ func parseTelegramGroupOrChannel(chat: Api.Chat) -> Peer? {
|
||||
if (flags2 & Int32(1 << 17)) != 0 {
|
||||
channelFlags.insert(.isMonoforum)
|
||||
}
|
||||
if (flags2 & Int32(1 << 19)) != 0 {
|
||||
channelFlags.insert(.displayForumAsTabs)
|
||||
}
|
||||
|
||||
var storiesHidden: Bool?
|
||||
if flags2 & (1 << 2) == 0 { // stories_hidden_min
|
||||
|
@ -184,6 +184,7 @@ public struct TelegramChannelFlags: OptionSet {
|
||||
public static let isForum = TelegramChannelFlags(rawValue: 1 << 11)
|
||||
public static let autoTranslateEnabled = TelegramChannelFlags(rawValue: 1 << 12)
|
||||
public static let isMonoforum = TelegramChannelFlags(rawValue: 1 << 13)
|
||||
public static let displayForumAsTabs = TelegramChannelFlags(rawValue: 1 << 14)
|
||||
}
|
||||
|
||||
public final class TelegramChannel: Peer, Equatable {
|
||||
|
Loading…
x
Reference in New Issue
Block a user