[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

@@ -1869,7 +1869,7 @@ public final class ChatEmptyNode: ASDisplayNode {
}
}
} else if let channel = peer as? TelegramChannel, channel.isMonoForum {
if let mainChannel = interfaceState.renderedPeer?.chatOrMonoforumMainPeer as? TelegramChannel, mainChannel.hasPermission(.sendSomething) {
if let mainChannel = interfaceState.renderedPeer?.chatOrMonoforumMainPeer as? TelegramChannel, mainChannel.hasPermission(.manageDirect) {
contentType = .regular
} else {
contentType = .starsRequired(interfaceState.sendPaidMessageStars?.value)