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

fixed user's own message is unread on different plaforms #2059

Merged
merged 1 commit into from
Mar 26, 2021

Conversation

parasharrajat
Copy link
Member

Please review @marcaaron

Details

we were using the stale reference to lastReadSequenceNumber which caused the linked issue. I have refactored the code and fixed it.

Fixed Issues

Fixes #1985

Tests

Tried sending messages as explained in the issue.

Tested On

  • Web
  • Mobile Web
  • Desktop
  • iOS
  • Android

Screenshots

To the same User

screen-.2.mp4

To another User

screen-.3.mp4

@parasharrajat parasharrajat requested a review from a team as a code owner March 24, 2021 22:45
@botify botify requested review from timszot and removed request for a team March 24, 2021 22:46
src/libs/actions/Report.js Outdated Show resolved Hide resolved
src/libs/actions/Report.js Outdated Show resolved Hide resolved
@parasharrajat parasharrajat force-pushed the parasharrajat/unread-fix branch from 668c574 to 85afd82 Compare March 24, 2021 23:06
@parasharrajat parasharrajat requested a review from marcaaron March 24, 2021 23:10
Copy link
Contributor

@marcaaron marcaaron left a comment

Choose a reason for hiding this comment

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

Lmk if these comments make sense. I'm a little concerned the existing logic is hard to follow and will break again.

src/libs/actions/Report.js Outdated Show resolved Hide resolved
src/libs/actions/Report.js Show resolved Hide resolved
@parasharrajat parasharrajat force-pushed the parasharrajat/unread-fix branch from 85afd82 to 406e5e5 Compare March 25, 2021 00:17
@parasharrajat parasharrajat requested a review from marcaaron March 25, 2021 00:18
Copy link
Contributor

@marcaaron marcaaron left a comment

Choose a reason for hiding this comment

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

👍

@parasharrajat parasharrajat requested a review from marcaaron March 26, 2021 16:37
Copy link
Contributor

@marcaaron marcaaron left a comment

Choose a reason for hiding this comment

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

LGTM

@marcaaron marcaaron merged commit fc44fce into Expensify:master Mar 26, 2021
@OSBotify
Copy link
Contributor

✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release.

@parasharrajat parasharrajat deleted the parasharrajat/unread-fix branch November 4, 2022 19:59
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.

User's own messages displaying as unread in other platforms
4 participants