Rocket.Chat.ReactNative icon indicating copy to clipboard operation
Rocket.Chat.ReactNative copied to clipboard

fix: Auto close archive/hide option for chat

Open AmitGiriDev opened this issue 1 year ago • 6 comments

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:

  1. left/right swipe on chats
  2. 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:

AmitGiriDev avatar Feb 04 '24 21:02 AmitGiriDev

hi @diegolmello @GleidsonDaniel, please confirm if this could be an enhancement and should I work on it?

AmitGiriDev avatar Feb 04 '24 21:02 AmitGiriDev

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?

diegolmello avatar Feb 05 '24 11:02 diegolmello

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?

AmitGiriDev avatar Feb 05 '24 12:02 AmitGiriDev

I'm sorry, but you're not making yourself clear. Can you record any videos of what you're proposing? Telegram examples, etc

diegolmello avatar Feb 05 '24 13:02 diegolmello

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

AmitGiriDev avatar Feb 10 '24 00:02 AmitGiriDev