mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-17 11:50:56 +00:00
Cleanup
This commit is contained in:
parent
3611339b2b
commit
3dcc32c3c3
@ -665,8 +665,7 @@ final class ChatEmptyNode: ASDisplayNode {
|
|||||||
let node: ASDisplayNode & ChatEmptyNodeContent
|
let node: ASDisplayNode & ChatEmptyNodeContent
|
||||||
switch contentType {
|
switch contentType {
|
||||||
case .regular:
|
case .regular:
|
||||||
// node = ChatEmptyNodeRegularChatContent()
|
node = ChatEmptyNodeRegularChatContent()
|
||||||
node = ChatEmptyNodeNearbyChatContent(account: self.account, interaction: self.interaction)
|
|
||||||
case .secret:
|
case .secret:
|
||||||
node = ChatEmptyNodeSecretChatContent()
|
node = ChatEmptyNodeSecretChatContent()
|
||||||
case .group:
|
case .group:
|
||||||
@ -680,7 +679,7 @@ node = ChatEmptyNodeNearbyChatContent(account: self.account, interaction: self.i
|
|||||||
self.addSubnode(node)
|
self.addSubnode(node)
|
||||||
contentTransition = .immediate
|
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))
|
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