Skip to content

[FIX] Disable swipe when room is not joined#3319

Merged
diegolmello merged 9 commits into
developfrom
fix.not-swipe-spotlight
Oct 20, 2021
Merged

[FIX] Disable swipe when room is not joined#3319
diegolmello merged 9 commits into
developfrom
fix.not-swipe-spotlight

Conversation

@reinaldonetof

Copy link
Copy Markdown
Contributor

Proposed changes

Remove the button swipe when the main search returns users you aren't talking about yet or rooms you weren't joined.

Issue(s)

When searching for rooms, swipe is enabled on RoomItem.
it's for sure incorrect for rooms without subscription.

How to test or reproduce

  • On Room List, tap on Search
  • Search for a new user that you weren't talked or new room you weren't joined
  • Try to swipe the button
  • You can't swipe if the item is a new room/user

Screenshots

Before

Screen.Recording.2021-08-05.at.17.10.21.mov

After

Screen.Recording.2021-08-05.at.17.09.43.mov

Types of changes

  • Bugfix (non-breaking change which fixes an issue)
  • Improvement (non-breaking change which improves a current function)
  • New feature (non-breaking change which adds functionality)
  • Documentation update (if none of the other choices apply)

Checklist

  • I have read the CONTRIBUTING doc
  • I have signed the CLA
  • Lint and unit tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works (if applicable)
  • I have added necessary documentation (if applicable)
  • Any dependent changes have been merged and published in downstream modules

Further comments

@gerzonc gerzonc left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@AlexAlexandre AlexAlexandre left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code it's ok, but could you please merge the latest changes from develop into this branch ?

@AlexAlexandre AlexAlexandre left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Comment thread app/lib/rocketchat.js Outdated
Comment thread app/lib/rocketchat.js Outdated
Comment thread app/views/RoomsListView/index.js
@diegolmello diegolmello changed the title [FIX] Swipe when the user is joined and not when isn't in main search [FIX] Disable swipe when room is not joined Oct 14, 2021
@diegolmello diegolmello merged commit 1889918 into develop Oct 20, 2021
@diegolmello diegolmello deleted the fix.not-swipe-spotlight branch October 20, 2021 16:34
ivnxyz pushed a commit to NextiaDev/Rocket.Chat.ReactNative that referenced this pull request May 26, 2023
* [FIX] swipe when the user is joined and not when isn't

* Added a new conditional to check if is swipeble or not

* Minor tweaks

Co-authored-by: Diego Mello <diegolmello@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants