mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 14:45:21 +00:00
Comment [WIP]
This commit is contained in:
@@ -1964,7 +1964,9 @@ class ChatControllerNode: ASDisplayNode, UIScrollViewDelegate {
|
||||
if let peer = chatPresentationInterfaceState.renderedPeer?.peer, let restrictionTextValue = peer.restrictionText(platform: "ios", contentSettings: self.context.currentContentSettings.with { $0 }), !restrictionTextValue.isEmpty {
|
||||
restrictionText = restrictionTextValue
|
||||
} else if chatPresentationInterfaceState.isNotAccessible {
|
||||
if let peer = chatPresentationInterfaceState.renderedPeer?.peer as? TelegramChannel, case .broadcast = peer.info {
|
||||
if case .replyThread = self.chatLocation {
|
||||
restrictionText = chatPresentationInterfaceState.strings.CommentsGroup_ErrorAccessDenied
|
||||
} else if let peer = chatPresentationInterfaceState.renderedPeer?.peer as? TelegramChannel, case .broadcast = peer.info {
|
||||
restrictionText = chatPresentationInterfaceState.strings.Channel_ErrorAccessDenied
|
||||
} else {
|
||||
restrictionText = chatPresentationInterfaceState.strings.Group_ErrorAccessDenied
|
||||
|
||||
Reference in New Issue
Block a user