fix: swipe actions remains sticky in the chat view for tiles
Description:
In the chat view, whenever the user swipes on one chat (either left or right), options for that chat appear. But if the user swipes another chat then the options shown for the last chat tile remain persistent. Like every other app, an intuitive and expected behaviour is to close the options for the last tile while the user scrolls or swipes (left or right) on another chat.
Environment Information:
- Rocket.Chat Server Version: 6.6.0
- Rocket.Chat App Version: 4.47.0.99999
- Device Name: Realme 7
- OS Version: Realme UI 3.0
Steps to reproduce:
- Swipe a chat (left or right)
- Swipe another chat (left or right)
- Observe that first tile you swiped remains at its position rather than bouncing back to the original
Expected behavior:
Bouncing back of the first tile that user has swiped to its original place when the user has:
- Just scrolled up or down
- Swiped another tile
Actual behavior:
https://github.com/RocketChat/Rocket.Chat.ReactNative/assets/126406840/c7dcaccd-6082-4afd-b461-5f7e743543bd
I am working on this issue.
Hey @preeesha, similar issue is already raised and being discussed in #5536