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: Read receipts are not created on the first time a user reads a room #30610

Merged
merged 16 commits into from
Oct 17, 2023

Conversation

matheusbsilva137
Copy link
Member

@matheusbsilva137 matheusbsilva137 commented Oct 9, 2023

Proposed changes (including videos or screenshots)

  • When a user accesses a room for the first time, mark as read all the messages sent after they joined the room.

Issue(s)

Steps to test or reproduce

Further comments

TC-986

@changeset-bot
Copy link

changeset-bot bot commented Oct 9, 2023

🦋 Changeset detected

Latest commit: 9f0852a

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 Oct 9, 2023

Codecov Report

Merging #30610 (9f0852a) into develop (85ddfb2) will decrease coverage by 0.29%.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop   #30610      +/-   ##
===========================================
- Coverage    51.29%   51.01%   -0.29%     
===========================================
  Files          811      805       -6     
  Lines        15062    15077      +15     
  Branches      2753     2787      +34     
===========================================
- Hits          7726     7691      -35     
- Misses        6928     6954      +26     
- Partials       408      432      +24     
Flag Coverage Δ
e2e 48.30% <ø> (-0.27%) ⬇️
unit 64.76% <ø> (ø)

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

@matheusbsilva137 matheusbsilva137 marked this pull request as ready for review October 11, 2023 14:22
@matheusbsilva137 matheusbsilva137 requested a review from a team as a code owner October 11, 2023 14:22
sampaiodiego
sampaiodiego previously approved these changes Oct 13, 2023
heitortanoue
heitortanoue previously approved these changes Oct 13, 2023
Copy link
Member Author

@matheusbsilva137 matheusbsilva137 left a comment

Choose a reason for hiding this comment

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

QA noticed that when creating a room already with a member, the first messages would still not be marked as read when reading the room with the invited user (that's because we update their subscription by the time the first message is sent, which makes _updatedAt timestamp bigger than the message's ts). That's now fixed by using the subscription's ts instead
Thanks @jessicaschelly

@dionisio-bot dionisio-bot bot added the stat: ready to merge PR tested and approved waiting for merge label Oct 13, 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 13, 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 13, 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 16, 2023
@scuciatto scuciatto added this to the 6.6.0 milestone Oct 16, 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 16, 2023
@dionisio-bot dionisio-bot bot removed the stat: ready to merge PR tested and approved waiting for merge label Oct 17, 2023
@heitortanoue heitortanoue added the stat: ready to merge PR tested and approved waiting for merge label Oct 17, 2023
@kodiakhq kodiakhq bot merged commit ff2263a into develop Oct 17, 2023
43 checks passed
@kodiakhq kodiakhq bot deleted the fix/receipts-not-created-first-read branch October 17, 2023 13:25
gabriellsh added a commit that referenced this pull request Oct 18, 2023
…chat.postMessage

* 'develop' of github.com:RocketChat/Rocket.Chat:
  fix: inconsistent behavior when removing subscriptions and inquiries (#30572)
  fix: Handle AWS S3 Re-Authentication via s3.getSignedUrlPromise (#30642)
  test: wait for the name update finish (#30663)
  regression: Restore default limits to community apps (#30611)
  refactor: Move functions out of `Livechat.js` (#30650)
  chore: remove license v3 public key envvar (#30646)
  fix: Read receipts are not created on the first time a user reads a room (#30610)
  fix: licenses.info endpoint only available for admins (#30644)
debdutdeb pushed a commit that referenced this pull request Oct 26, 2023
@scuciatto scuciatto modified the milestones: 6.6.0, 6.5.0 Oct 27, 2023
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