mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Fix online indicator in share screen search
This commit is contained in:
parent
d4b1ee8efd
commit
bd142c1cf7
@ -207,8 +207,17 @@ public final class HorizontalPeerItemNode: ListViewItemNode {
|
|||||||
strongSelf.badgeBackgroundNode.isHidden = true
|
strongSelf.badgeBackgroundNode.isHidden = true
|
||||||
}
|
}
|
||||||
|
|
||||||
strongSelf.onlineNode.setImage(PresentationResourcesChatList.recentStatusOnlineIcon(item.theme, state: .regular), color: nil, transition: .immediate)
|
var verticalOffset: CGFloat = 0.0
|
||||||
strongSelf.onlineNode.frame = CGRect(x: itemLayout.size.width - onlineLayout.width - 18.0, y: itemLayout.size.height - onlineLayout.height - 18.0, width: onlineLayout.width, height: onlineLayout.height)
|
let state: RecentStatusOnlineIconState
|
||||||
|
if case .actionSheet = item.mode {
|
||||||
|
state = .panel
|
||||||
|
verticalOffset -= 9.0
|
||||||
|
} else {
|
||||||
|
state = .regular
|
||||||
|
}
|
||||||
|
|
||||||
|
strongSelf.onlineNode.setImage(PresentationResourcesChatList.recentStatusOnlineIcon(item.theme, state: state), color: nil, transition: .immediate)
|
||||||
|
strongSelf.onlineNode.frame = CGRect(x: itemLayout.size.width - onlineLayout.width - 18.0, y: itemLayout.size.height - onlineLayout.height - 18.0 + verticalOffset, width: onlineLayout.width, height: onlineLayout.height)
|
||||||
|
|
||||||
let _ = badgeApply()
|
let _ = badgeApply()
|
||||||
let _ = onlineApply(animateContent)
|
let _ = onlineApply(animateContent)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user