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: webclient still showing DM messages that had already been deleted from the server #31537

Merged
merged 3 commits into from
Jan 25, 2024

Conversation

pierre-lehnen-rc
Copy link
Contributor

Proposed changes (including videos or screenshots)

Issue(s)

When a room is deleted in the server, the webclient does not clear its cache of that room's history.
If a new room is created with the same ID as the deleted room, the client would still show those cached messages from the deleted room in the new room - it also failed to properly send and load new messages to this new room until the user refreshed the window.

This is only possible on basic DMs, where the room id is not random but calculated based on the ids of the users involved.

Steps to test or reproduce

Further comments

Copy link

changeset-bot bot commented Jan 25, 2024

🦋 Changeset detected

Latest commit: 6a3fc84

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

Copy link

codecov bot commented Jan 25, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (c8ec364) 49.57% compared to head (6a3fc84) 49.54%.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##           develop   #31537      +/-   ##
===========================================
- Coverage    49.57%   49.54%   -0.03%     
===========================================
  Files         3328     3328              
  Lines        81793    81771      -22     
  Branches     16881    16877       -4     
===========================================
- Hits         40546    40511      -35     
- Misses       36503    36514      +11     
- Partials      4744     4746       +2     
Flag Coverage Δ
e2e 53.28% <100.00%> (-0.05%) ⬇️
e2e-api 40.61% <ø> (-0.03%) ⬇️
unit 76.47% <ø> (ø)

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

@pierre-lehnen-rc pierre-lehnen-rc marked this pull request as ready for review January 25, 2024 17:45
@pierre-lehnen-rc pierre-lehnen-rc requested a review from a team as a code owner January 25, 2024 17:45
@casalsgh casalsgh added this to the 6.6 milestone Jan 25, 2024
@dionisio-bot dionisio-bot bot added the stat: ready to merge PR tested and approved waiting for merge label Jan 25, 2024
@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 Jan 25, 2024
@kodiakhq kodiakhq bot merged commit 4e138ea into develop Jan 25, 2024
44 checks passed
@kodiakhq kodiakhq bot deleted the fix/remove-messages-on-room-deleted branch January 25, 2024 23:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stat: QA tested stat: ready to merge PR tested and approved waiting for merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants