mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-01 16:06:59 +00:00
- additional method
This commit is contained in:
parent
82d38a8403
commit
7fe9ce7321
@ -279,6 +279,14 @@ public extension Peer {
|
||||
}
|
||||
}
|
||||
|
||||
var displayForumAsTabs: Bool {
|
||||
if let channel = self as? TelegramChannel, isForum {
|
||||
return channel.flags.contains(.displayForumAsTabs)
|
||||
} else {
|
||||
return false
|
||||
}
|
||||
}
|
||||
|
||||
var isForumOrMonoForum: Bool {
|
||||
if let channel = self as? TelegramChannel {
|
||||
return channel.flags.contains(.isForum) || channel.flags.contains(.isMonoforum)
|
||||
|
Loading…
x
Reference in New Issue
Block a user