mirror of
https://github.com/TelegramMessenger/Telegram-iOS.git
synced 2026-07-06 03:33:41 +02:00
Fix unnecessary avatar expansion
This commit is contained in:
parent
79a81fc73f
commit
d202aa1472
1 changed files with 1 additions and 1 deletions
|
|
@ -8245,7 +8245,7 @@ final class PeerInfoScreenNode: ViewControllerTracingNode, UIScrollViewDelegate
|
|||
isLandscape = true
|
||||
}
|
||||
if offsetY <= -32.0 && scrollView.isDragging && scrollView.isTracking {
|
||||
if let peer = self.data?.peer, peer.smallProfileImage != nil && self.state.updatingAvatar == nil && !isLandscape {
|
||||
if let peer = self.data?.peer, self.chatLocation.threadId == nil, peer.smallProfileImage != nil && self.state.updatingAvatar == nil && !isLandscape {
|
||||
shouldBeExpanded = true
|
||||
|
||||
if self.canOpenAvatarByDragging && self.headerNode.isAvatarExpanded && offsetY <= -32.0 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue