mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-10-09 03:20:48 +00:00
Cleanup
This commit is contained in:
parent
3611339b2b
commit
3dcc32c3c3
@ -665,8 +665,7 @@ final class ChatEmptyNode: ASDisplayNode {
|
||||
let node: ASDisplayNode & ChatEmptyNodeContent
|
||||
switch contentType {
|
||||
case .regular:
|
||||
// node = ChatEmptyNodeRegularChatContent()
|
||||
node = ChatEmptyNodeNearbyChatContent(account: self.account, interaction: self.interaction)
|
||||
node = ChatEmptyNodeRegularChatContent()
|
||||
case .secret:
|
||||
node = ChatEmptyNodeSecretChatContent()
|
||||
case .group:
|
||||
@ -680,7 +679,7 @@ node = ChatEmptyNodeNearbyChatContent(account: self.account, interaction: self.i
|
||||
self.addSubnode(node)
|
||||
contentTransition = .immediate
|
||||
}
|
||||
self.isUserInteractionEnabled = contentType == .peerNearby || contentType == .regular
|
||||
self.isUserInteractionEnabled = contentType == .peerNearby
|
||||
|
||||
let displayRect = CGRect(origin: CGPoint(x: 0.0, y: insets.top), size: CGSize(width: size.width, height: size.height - insets.top - insets.bottom))
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user