mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Peer sound and message removal update
This commit is contained in:
@@ -94,6 +94,8 @@ private final class ContextControllerActionsListActionItemNode: HighlightTrackin
|
||||
self.addSubnode(self.subtitleNode)
|
||||
self.addSubnode(self.iconNode)
|
||||
|
||||
self.isEnabled = self.canBeHighlighted()
|
||||
|
||||
self.highligthedChanged = { [weak self] highlighted in
|
||||
guard let strongSelf = self else {
|
||||
return
|
||||
@@ -135,7 +137,7 @@ private final class ContextControllerActionsListActionItemNode: HighlightTrackin
|
||||
}
|
||||
|
||||
func canBeHighlighted() -> Bool {
|
||||
return true
|
||||
return self.item.action != nil
|
||||
}
|
||||
|
||||
func updateIsHighlighted(isHighlighted: Bool) {
|
||||
|
||||
Reference in New Issue
Block a user