fix: Auto close archive/hide option for chat
Description:
Swiping up/down, or pressing somewhere else should close archive/hide options of chats
Environment Information:
- Rocket.Chat Server Version: 6.6.0
- Rocket.Chat App Version: 4.47.0.99999
- Device Name: Realme Narzo 50
- OS Version: Realme UI 4.0
Steps to reproduce:
- left/right swipe on chats
- then swipe up and down
Expected behavior:
swiping up or down should auto close archive/hide options
Actual behavior:
user manually have to close options
https://github.com/RocketChat/Rocket.Chat.ReactNative/assets/77196415/709c1b88-e155-45e3-a822-820b51ebb042
Additional context:
hi @diegolmello @GleidsonDaniel, please confirm if this could be an enhancement and should I work on it?
It's not up/down swipes. It shouldn't be allowed to open more than one imo. What's the behavior on your other Android apps?
I have seen such feature in telegram and google messages app. They provide option to archive chat on horizontal swipes. but they are like : if swipe till a threshold -> archive the chat else back to normal automatically. they only have single option on horizontal swipe and yes only one is allowed on them as you said.
so should I proceed like: persist the swipe and back to normal on other gesture anywhere on the screen, like swipe up/down or trying to archive other room chat?
I'm sorry, but you're not making yourself clear. Can you record any videos of what you're proposing? Telegram examples, etc
Below are the recordings of signal and telegram
https://github.com/RocketChat/Rocket.Chat.ReactNative/assets/77196415/98b31b21-ebc6-4c9c-a72f-babb8ab0d7c5
https://github.com/RocketChat/Rocket.Chat.ReactNative/assets/77196415/d83c76e2-e285-46a1-98b7-add88654304b