mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-15 18:59:54 +00:00
[ASTextNode] One more check variables before calling delegate method #trivial (#922)
This commit is contained in:
parent
736e200407
commit
4b5b90f7a0
@ -657,7 +657,7 @@ static NSArray *DefaultLinkAttributeNames = @[ NSLinkAttributeName ];
|
||||
}
|
||||
|
||||
// Ask our delegate if a long-press on an attribute is relevant
|
||||
if ([_delegate respondsToSelector:@selector(textNode:shouldLongPressLinkAttribute:value:atPoint:)]) {
|
||||
if ([self _pendingLinkTap] && [_delegate respondsToSelector:@selector(textNode:shouldLongPressLinkAttribute:value:atPoint:)]) {
|
||||
return [_delegate textNode:self
|
||||
shouldLongPressLinkAttribute:_highlightedLinkAttributeName
|
||||
value:_highlightedLinkAttributeValue
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user