mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 06:35:51 +00:00
Workaround for General topic
This commit is contained in:
@@ -199,6 +199,14 @@ public extension Peer {
|
||||
return false
|
||||
}
|
||||
}
|
||||
|
||||
var isForum: Bool {
|
||||
if let channel = self as? TelegramChannel {
|
||||
return channel.flags.contains(.isForum)
|
||||
} else {
|
||||
return false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public extension TelegramPeerUsername {
|
||||
|
||||
Reference in New Issue
Block a user