[WIP] Topics

This commit is contained in:
Ali
2022-10-23 00:22:27 +04:00
parent 5ae5bbb2b8
commit 3ec3cce9c1
18 changed files with 165 additions and 102 deletions

View File

@@ -932,7 +932,7 @@ func canEditPeerInfo(context: AccountContext, peer: Peer?, threadData: MessageHi
}
if let channel = peer as? TelegramChannel {
if let threadData = threadData {
if channel.hasPermission(.pinMessages) {
if channel.hasPermission(.manageTopics) {
return true
}
if threadData.author == context.account.peerId {