Closed rpachecoaimonkey closed 2 years ago
Hey @rpachecoaimonkey,
Sorry, I'm not sure I understand the issue fully. By "the reactions are blocked" you mean they can't be dismissed, right?
In any case, I've tried your code and whenever I tap on the background, it correctly dismisses the popup, both for the current user's messages and for the others. (The only difference was that I was using the message text and avatar views from the SDK, since you haven't shared those).
In general, there shouldn't be any special handling for the messages sent by the current user - the overlay should behave the same. What other common thing those messages have? Maybe a custom attachment, thread replies or something else?
If possible, please share a minimum reproducible project and we can have a look. Additionally, you can also check if something is blocking the tap gesture in your custom views.
Looking forward to your input, Martin
Closing this one. If you need any additional help here, feel free to reopen it.
What did you do?
Created my own view for contextMenu and setting it using the factory method makeReactionsOverlayView, passing onBackgroundTap method to my custom view and using this method to dismiss the view. When it happens, the reactions are blocked too. We tested with differents messages and this scenario happens just in a few cases, and normally, in cases when the message is of the same user logged in.
There is a function or variable can we pass to block the context menu when the message is my, or we need to configure something else?
What did you expect to happen?
When users tapped in background, could execute the onTapGesture in the background and will tap on reactions too.
What happened instead?
onTapGesture is not called
GetStream Environment
GetStream Chat version: 4.20.0 GetStream Chat frameworks: StreamChatSwiftUI iOS version: iOS 15.6.1 Swift version: 5 Xcode version: 13.4.1 Device: iPhone 11
Additional context