Skip to content

Conversation

@Darshilp326
Copy link
Contributor

@Darshilp326 Darshilp326 commented Jan 6, 2021

Proposed changes (including videos or screenshots)

Users can be removed from channels without any error message.

remove-user-pr.mp4

Issue(s)

Closes #20058
Closes #20095

Steps to test or reproduce

Further comments

@Darshilp326
Copy link
Contributor Author

Please review:)

close={closeModal}
confirmText={t('Yes_remove_user')}
confirm={() => { removeUserAction({ roomId: rid, userId: uid }); closeModal(); }}
confirm={() => { removeUserAction({ roomId: rid, username: user.username }); closeModal(); }}
Copy link
Member

Choose a reason for hiding this comment

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

Although this works for the user removal, it's not the ideal fix, since uid is used in other places that should be broken too. Try to see where this user object is coming from and why the _id property is not coming along with it.

This issue looks pretty bad, so I'll give you another couple of hours to figure it out, otherwise I'll fix it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Working on it!

@Darshilp326
Copy link
Contributor Author

@gabriellsh Please review!

@gabriellsh
Copy link
Member

@gabriellsh Please review!

Nice man! Did you test it again to see if the new fix is working?

@Darshilp326
Copy link
Contributor Author

Darshilp326 commented Jan 7, 2021

removeuser-pr.mp4

@gabriellsh Have a look!

@chetas411
Copy link

@Darshilp326 I think your changes would also solve this #20095 , So should I close it ?

@sampaiodiego sampaiodiego added this to the 3.10.1 milestone Jan 8, 2021
@sampaiodiego sampaiodiego changed the title [FIX] Remove users from room. [FIX] Actions from User Info panel Jan 8, 2021
@sampaiodiego sampaiodiego merged commit 5832eb5 into RocketChat:develop Jan 8, 2021
@sampaiodiego sampaiodiego mentioned this pull request Jan 8, 2021
vanhoang1107 pushed a commit to vanhoang1107/Rocket.Chat that referenced this pull request Jan 11, 2021
* rocketchat/master:
  Bump version to 3.10.3
  [FIX] User registration updating wrong subscriptions (RocketChat#20128)
  Bump version to 3.10.2
  [FIX] Tabbar is opened (RocketChat#20122)
  Bump version to 3.10.1
  [FIX] Actions from User Info panel (RocketChat#20073)
  [FIX] Messages being updated when not required after user changes his profile (RocketChat#20114)
  Custom fields not storing additional form values, fixing label and solving duplicated register. (RocketChat#19953)
  Fix livechat room breaking after return (RocketChat#20089)
  [FIX] Omnichannel raw model importing meteor dependency (RocketChat#20093)
  [FIX] User Audio notification preference not being applied (RocketChat#20061)
  [FIX] OAuth users being asked to change password on second login (RocketChat#20003)
  [FIX] Omnichannel Agents unable to take new chats in the queue (RocketChat#20022)
  [FIX] Omnichannel Business Hours form is not being rendered (RocketChat#20007)
  [FIX] Agent information panel not rendering (RocketChat#19965)
  [FIX] Apps Create Room method with agent not working (RocketChat#19997)
gabriellsh added a commit that referenced this pull request Jan 12, 2021
…info_page

* 'develop' of github.com:RocketChat/Rocket.Chat: (31 commits)
  [FIX] Normalize messages for users in endpoint chat.getStarredMessages (#19962)
  [FIX] minWidth in FileIcon to prevent layout to broke (#19942)
  [IMPROVE] Add extra SAML settings to update room subs and add private room subs (#19489)
  [IMPROVE] Rewrite User Dropdown and Kebab menu. (#20070)
  Language update from LingoHub 🤖 on 2021-01-11Z (#20146)
  [FIX] User registration updating wrong subscriptions (#20128)
  Rewrite Discussion Metric (#20117)
  [IMPROVE] Don't use global search by default (#19777)
  [FIX] Tabbar is opened (#20122)
  [FIX] Actions from User Info panel (#20073)
  Update password policy English translation (#20118)
  [FIX] Messages being updated when not required after user changes his profile (#20114)
  Custom fields not storing additional form values, fixing label and solving duplicated register. (#19953)
  Fix livechat room breaking after return (#20089)
  [FIX] Meteor errors not translating for toast messages (#19993)
  [FIX] Profile picture changing with username (#19992)
  [FIX] Search list filter (#19937)
  chore: Change return button (#20045)
  Rewrite : Message Thread metrics (#20051)
  [FIX] Omnichannel raw model importing meteor dependency (#20093)
  ...
@sampaiodiego sampaiodiego mentioned this pull request Feb 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Ignore button in User info returns undefined when clicked Can't remove users from channels

4 participants