|
|
@ -468,6 +468,7 @@ final class VisibleMessageCell : MessageCell, LinkPreviewViewDelegate {
|
|
|
|
let location = gestureRecognizer.location(in: self)
|
|
|
|
let location = gestureRecognizer.location(in: self)
|
|
|
|
if profilePictureView.frame.contains(location) && VisibleMessageCell.shouldShowProfilePicture(for: viewItem) {
|
|
|
|
if profilePictureView.frame.contains(location) && VisibleMessageCell.shouldShowProfilePicture(for: viewItem) {
|
|
|
|
guard let message = viewItem.interaction as? TSIncomingMessage else { return }
|
|
|
|
guard let message = viewItem.interaction as? TSIncomingMessage else { return }
|
|
|
|
|
|
|
|
guard !message.isOpenGroupMessage else { return } // Do not show user details to prevent spam
|
|
|
|
delegate?.showUserDetails(for: message.authorId)
|
|
|
|
delegate?.showUserDetails(for: message.authorId)
|
|
|
|
} else if replyButton.frame.contains(location) {
|
|
|
|
} else if replyButton.frame.contains(location) {
|
|
|
|
UIImpactFeedbackGenerator(style: .heavy).impactOccurred()
|
|
|
|
UIImpactFeedbackGenerator(style: .heavy).impactOccurred()
|
|
|
|