From 841d34d3ef2ee4daea26844811e6dfce4a840399 Mon Sep 17 00:00:00 2001 From: Ryan Zhao Date: Mon, 20 Jun 2022 16:09:04 +1000 Subject: [PATCH] fix: tap and long press emoji below message bubble --- Session/Conversations/Message Cells/VisibleMessageCell.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Session/Conversations/Message Cells/VisibleMessageCell.swift b/Session/Conversations/Message Cells/VisibleMessageCell.swift index 3e33d4c4a..ab697e160 100644 --- a/Session/Conversations/Message Cells/VisibleMessageCell.swift +++ b/Session/Conversations/Message Cells/VisibleMessageCell.swift @@ -544,7 +544,7 @@ final class VisibleMessageCell : MessageCell, LinkPreviewViewDelegate { if reactionContainerView.frame.contains(location) { let convertedLocation = reactionContainerView.convert(location, from: self) for reactionView in reactionContainerView.reactionViews { - if reactionView.frame.contains(convertedLocation) { + if reactionContainerView.convert(reactionView.frame, from: reactionView.superview).contains(convertedLocation) { delegate?.showReactionList(viewItem, selectedReaction: reactionView.emoji) break } @@ -568,7 +568,7 @@ final class VisibleMessageCell : MessageCell, LinkPreviewViewDelegate { } else if reactionContainerView.frame.contains(location) { let convertedLocation = reactionContainerView.convert(location, from: self) for reactionView in reactionContainerView.reactionViews { - if reactionView.frame.contains(convertedLocation) { + if reactionContainerView.convert(reactionView.frame, from: reactionView.superview).contains(convertedLocation) { if reactionView.showBorder { delegate?.cancelReact(viewItem, for: reactionView.emoji) } else {