Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: DM room stay "read only" after the deactivate and reactivate user with "guest" role #30459

Merged
merged 7 commits into from
Oct 10, 2023

Conversation

heitortanoue
Copy link
Contributor

Proposed changes (including videos or screenshots)

This bug is with the direct message between user and guest.

If we deactivate and reactivate user, his permission in direct message chat with guest users will be in a read-only mode.

Issue(s)

Steps to test or reproduce

  • Create a normal user and a guest user. Initiate chat between them so there is a direct room.

  • Now deactivate and activate the normal user.

  • Room will become and stay read-only even after reactivation of guest user.

  • This is not happening in DM with User<->User

Further comments

SUP-221

@changeset-bot
Copy link

changeset-bot bot commented Sep 21, 2023

🦋 Changeset detected

Latest commit: 6a3b2cb

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 30 packages
Name Type
@rocket.chat/meteor Patch
@rocket.chat/core-typings Patch
@rocket.chat/rest-typings Patch
@rocket.chat/core-services Patch
@rocket.chat/cron Patch
@rocket.chat/gazzodown Patch
@rocket.chat/livechat Patch
@rocket.chat/model-typings Patch
@rocket.chat/ui-contexts Patch
@rocket.chat/account-service Patch
@rocket.chat/authorization-service Patch
@rocket.chat/ddp-streamer Patch
@rocket.chat/omnichannel-transcript Patch
@rocket.chat/presence-service Patch
@rocket.chat/queue-worker Patch
@rocket.chat/stream-hub-service Patch
@rocket.chat/api-client Patch
@rocket.chat/license Patch
@rocket.chat/omnichannel-services Patch
@rocket.chat/pdf-worker Patch
@rocket.chat/presence Patch
rocketchat-services Patch
@rocket.chat/ddp-client Patch
@rocket.chat/fuselage-ui-kit Patch
@rocket.chat/models Patch
@rocket.chat/ui-client Patch
@rocket.chat/ui-video-conf Patch
@rocket.chat/uikit-playground Patch
@rocket.chat/web-ui-registration Patch
@rocket.chat/instance-status Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@codecov
Copy link

codecov bot commented Sep 21, 2023

Codecov Report

Merging #30459 (6a3b2cb) into develop (0586501) will decrease coverage by 0.25%.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop   #30459      +/-   ##
===========================================
- Coverage    51.30%   51.05%   -0.25%     
===========================================
  Files          811      806       -5     
  Lines        15083    15116      +33     
  Branches      2754     2765      +11     
===========================================
- Hits          7738     7718      -20     
- Misses        6935     6970      +35     
- Partials       410      428      +18     
Flag Coverage Δ
e2e 48.34% <ø> (-0.24%) ⬇️
unit 64.80% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

@heitortanoue heitortanoue marked this pull request as ready for review September 26, 2023 16:41
@heitortanoue heitortanoue requested a review from a team as a code owner September 26, 2023 16:41
@dionisio-bot dionisio-bot bot added the stat: ready to merge PR tested and approved waiting for merge label Oct 2, 2023
@dionisio-bot dionisio-bot bot added stat: ready to merge PR tested and approved waiting for merge and removed stat: ready to merge PR tested and approved waiting for merge labels Oct 2, 2023
@dionisio-bot dionisio-bot bot added stat: ready to merge PR tested and approved waiting for merge and removed stat: ready to merge PR tested and approved waiting for merge labels Oct 10, 2023
@dionisio-bot dionisio-bot bot added stat: ready to merge PR tested and approved waiting for merge and removed stat: ready to merge PR tested and approved waiting for merge labels Oct 10, 2023
@kodiakhq kodiakhq bot merged commit f5c0d6b into develop Oct 10, 2023
43 checks passed
@kodiakhq kodiakhq bot deleted the fix/dm-user-guest-readonly branch October 10, 2023 17:45
@scuciatto scuciatto added this to the 6.5.0 milestone Oct 10, 2023
gabriellsh added a commit that referenced this pull request Oct 11, 2023
…/mentionBot

* 'develop' of github.com:RocketChat/Rocket.Chat:
  fix: Auto-translate doesn't work on E2E rooms (#30369)
  test: Validate monitors data access (#30593)
  fix: reset file input after uploading file (#30529)
  refactor: AutoCompleteTagsMultiple to TS (#30577)
  fix: DM room stay "read only" after the deactivate and reactivate user with "guest" role (#30459)
  fix: Change plan name from Enterprise to Premium on marketplace filtering (#30616)
  regression: test license from cloud (#30609)
  fix: Unable to send attachments via email as an omni-agent (#30525)
  ci: fix lint task
  fix: cloud alerts (#30607)
  feat: License trigger cloud sync after reach limits (#30603)
  chore: Change plan name Enterprise to Premium on marketplace (#30487)
  chore: Improve cache of static files (#30290)
  regression: Undefined MAC count on startup cloud sync (#30605)
  chore: Change Records page name to Reports (#30513)
hugocostadev pushed a commit that referenced this pull request Oct 11, 2023
…r with "guest" role (#30459)

Co-authored-by: Matheus Barbosa Silva <[email protected]>
debdutdeb pushed a commit that referenced this pull request Oct 26, 2023
…r with "guest" role (#30459)

Co-authored-by: Matheus Barbosa Silva <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
squad: team-collab stat: ready to merge PR tested and approved waiting for merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants