-
Notifications
You must be signed in to change notification settings - Fork 439
[BUG][RCVC] Long-press & tapping username/avatar is not being handled by cells with attachments #2369
Conversation
…ting it up into separated properties
…s attachment cells
|
||
extension BaseMessageCell: UIGestureRecognizerDelegate { | ||
|
||
func gestureRecognizer(_ gestureRecognizer: UIGestureRecognizer, shouldRequireFailureOf otherGestureRecognizer: UIGestureRecognizer) -> Bool { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line Length Violation: Line should be 120 characters or less: currently 146 characters (line_length)
} | ||
|
||
if avatarTapGesture == nil { | ||
let gesture = UITapGestureRecognizer(target: self, action: #selector(handleUsernameTapGestureCell(recognizer:))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line Length Violation: Line should be 120 characters or less: currently 124 characters (line_length)
} | ||
|
||
if usernameTapGesture == nil && username != nil { | ||
let gesture = UITapGestureRecognizer(target: self, action: #selector(handleUsernameTapGestureCell(recognizer:))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line Length Violation: Line should be 120 characters or less: currently 124 characters (line_length)
|
||
func insertGesturesIfNeeded(with username: UILabel?) { | ||
if longPressGesture == nil { | ||
let gesture = UILongPressGestureRecognizer(target: self, action: #selector(handleLongPressMessageCell(recognizer:))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line Length Violation: Line should be 120 characters or less: currently 128 characters (line_length)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me @filipealva 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks way simpler now, thanks @filipealva! 👍
@RocketChat/ios
Closes #2364