[WIP] Post suggestion

This commit is contained in:
Isaac
2025-06-17 13:55:44 +04:00
parent f1efac862b
commit 06eaf81fa9
43 changed files with 529 additions and 215 deletions

View File

@@ -430,7 +430,7 @@ public final class ChatLoadingPlaceholderNode: ASDisplayNode {
chatType = .group
} else if let channel = peer as? TelegramChannel {
if channel.isMonoForum {
if let mainChannel = renderedPeer?.chatOrMonoforumMainPeer as? TelegramChannel, mainChannel.hasPermission(.sendSomething) {
if let mainChannel = renderedPeer?.chatOrMonoforumMainPeer as? TelegramChannel, mainChannel.hasPermission(.manageDirect) {
if chatLocation.threadId == nil {
chatType = .group
} else {