Skip to content

[IMPROVE] Add ignore user to user profile#4600

Merged
reinaldonetof merged 15 commits into
developfrom
fix.ignore-user
Oct 13, 2022
Merged

[IMPROVE] Add ignore user to user profile#4600
reinaldonetof merged 15 commits into
developfrom
fix.ignore-user

Conversation

@reinaldonetof

@reinaldonetof reinaldonetof commented Oct 7, 2022

Copy link
Copy Markdown
Contributor

Proposed changes

We need to provide a simpler way to ignore users in a channel, also to block users too when accessing the Room Info View.

Add ignore button in user info, when clicking on the username on a message in a channel;
The icon will be the same as the block user in user profile;
Option will be exhibited in red;
It should be placed on the right of the message button;
If the user is already ignored; then the option of unignore should appear (same icon)

Issue(s)

How to test or reproduce

Screenshots

The video is reproducing the behavior when blocking a user from DM or ignoring a user from a channel.

Screen.Recording.2022-10-11.at.13.54.03.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

Jira: TC-163

@reinaldonetof reinaldonetof self-assigned this Oct 7, 2022
@diegolmello diegolmello changed the title [NEW] Ignore user [IMPROVE] Add ignore user to user profile Oct 10, 2022

@diegolmello diegolmello left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Missing E2E tests.

Comment thread app/lib/methods/helpers/log/events.ts Outdated
Comment thread app/views/RoomInfoView/index.tsx Outdated
Comment thread app/views/RoomInfoView/index.tsx Outdated
Comment thread app/views/RoomInfoView/index.tsx Outdated
Comment thread app/views/RoomInfoView/index.tsx Outdated
if (this.fromRid) {
try {
const sub = await getSubscriptionByRoomId(this.fromRid);
this.subscriptionFrom = sub?.observe().subscribe(roomFrom => {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

We should remove this reactivity.

Comment thread app/stacks/types.ts
@reinaldonetof reinaldonetof merged commit 531f3d0 into develop Oct 13, 2022
@reinaldonetof reinaldonetof deleted the fix.ignore-user branch October 13, 2022 21:29
diegolmello pushed a commit that referenced this pull request Oct 17, 2022
* button ignore and pased the param

* load room from database and check is is ignored

* move handleIgnore to lib/method/helpers

* Ignore and Unignore, also reactivity

* block and unblock user

* pass fromRid from actionView to InfoView too

* remove console.log

* unsubscribe subscriptionFrom

* block and unblock user from dm

* test to block user and ignore user

* minor tweak

* tweak data

* minor tweak

* add test before tapBack

* refactor names
ivnxyz pushed a commit to NextiaDev/Rocket.Chat.ReactNative that referenced this pull request May 26, 2023
* button ignore and pased the param

* load room from database and check is is ignored

* move handleIgnore to lib/method/helpers

* Ignore and Unignore, also reactivity

* block and unblock user

* pass fromRid from actionView to InfoView too

* remove console.log

* unsubscribe subscriptionFrom

* block and unblock user from dm

* test to block user and ignore user

* minor tweak

* tweak data

* minor tweak

* add test before tapBack

* refactor names
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants