mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 22:55:00 +00:00
[WIP] Monoforums
This commit is contained in:
@@ -598,7 +598,7 @@ private func mappedInsertEntries(context: AccountContext, nodeInteraction: ChatL
|
||||
}
|
||||
|
||||
var isForum = false
|
||||
if let peer = chatPeer, case let .channel(channel) = peer, channel.flags.contains(.isForum) {
|
||||
if let peer = chatPeer, case let .channel(channel) = peer, channel.isForumOrMonoForum {
|
||||
isForum = true
|
||||
if editing, case .chatList = mode {
|
||||
enabled = false
|
||||
@@ -948,7 +948,7 @@ private func mappedUpdateEntries(context: AccountContext, nodeInteraction: ChatL
|
||||
}
|
||||
|
||||
var isForum = false
|
||||
if let peer = chatPeer, case let .channel(channel) = peer, channel.flags.contains(.isForum) {
|
||||
if let peer = chatPeer, case let .channel(channel) = peer, channel.isForumOrMonoForum {
|
||||
isForum = true
|
||||
if editing, case .chatList = mode {
|
||||
enabled = false
|
||||
@@ -2987,7 +2987,7 @@ public final class ChatListNode: ListView {
|
||||
guard case .global = chatPeerId.category else {
|
||||
continue
|
||||
}
|
||||
if case let .channel(channel) = peerMap[chatPeerId.peerId], channel.flags.contains(.isForum) {
|
||||
if case let .channel(channel) = peerMap[chatPeerId.peerId], channel.isForumOrMonoForum {
|
||||
continue
|
||||
}
|
||||
itemId = ChatListNodePeerInputActivities.ItemId(peerId: chatPeerId.peerId, threadId: nil)
|
||||
|
||||
Reference in New Issue
Block a user