mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-07-27 05:30:50 +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 {
|
if (flags2 & Int32(1 << 17)) != 0 {
|
||||||
channelFlags.insert(.isMonoforum)
|
channelFlags.insert(.isMonoforum)
|
||||||
}
|
}
|
||||||
|
if (flags2 & Int32(1 << 19)) != 0 {
|
||||||
|
channelFlags.insert(.displayForumAsTabs)
|
||||||
|
}
|
||||||
|
|
||||||
var storiesHidden: Bool?
|
var storiesHidden: Bool?
|
||||||
if flags2 & (1 << 2) == 0 { // stories_hidden_min
|
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 isForum = TelegramChannelFlags(rawValue: 1 << 11)
|
||||||
public static let autoTranslateEnabled = TelegramChannelFlags(rawValue: 1 << 12)
|
public static let autoTranslateEnabled = TelegramChannelFlags(rawValue: 1 << 12)
|
||||||
public static let isMonoforum = TelegramChannelFlags(rawValue: 1 << 13)
|
public static let isMonoforum = TelegramChannelFlags(rawValue: 1 << 13)
|
||||||
|
public static let displayForumAsTabs = TelegramChannelFlags(rawValue: 1 << 14)
|
||||||
}
|
}
|
||||||
|
|
||||||
public final class TelegramChannel: Peer, Equatable {
|
public final class TelegramChannel: Peer, Equatable {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user