From 62f156440f3f4c205273394f7ce138d3f1d3768c Mon Sep 17 00:00:00 2001 From: Ilya Laktyushin Date: Tue, 20 May 2025 17:44:56 +0200 Subject: [PATCH] Update API --- .../TelegramCore/Sources/ApiUtils/ApiGroupOrChannel.swift | 3 +++ .../Sources/SyncCore/SyncCore_TelegramChannel.swift | 1 + 2 files changed, 4 insertions(+) diff --git a/submodules/TelegramCore/Sources/ApiUtils/ApiGroupOrChannel.swift b/submodules/TelegramCore/Sources/ApiUtils/ApiGroupOrChannel.swift index ab6fa6b98b..87373e26a7 100644 --- a/submodules/TelegramCore/Sources/ApiUtils/ApiGroupOrChannel.swift +++ b/submodules/TelegramCore/Sources/ApiUtils/ApiGroupOrChannel.swift @@ -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 diff --git a/submodules/TelegramCore/Sources/SyncCore/SyncCore_TelegramChannel.swift b/submodules/TelegramCore/Sources/SyncCore/SyncCore_TelegramChannel.swift index e0488d04a1..8c82a0cee4 100644 --- a/submodules/TelegramCore/Sources/SyncCore/SyncCore_TelegramChannel.swift +++ b/submodules/TelegramCore/Sources/SyncCore/SyncCore_TelegramChannel.swift @@ -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 {