Repository navigation
Refactor code to improve unread marker logic #18637
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
Merged
Merged
Changes from all commits
Commits
Show all changes
56 commits
Select commit
Hold shift + click to select a range
1c98457
Pass client's lastReadTime to server
MonilBhavsar 5189784
Listen for new messages
MonilBhavsar 8895b61
Mark comments as read
MonilBhavsar 7f13144
Add and update logic to set new marker
MonilBhavsar 87ef4b3
Update more logic and fix active chat case
MonilBhavsar 3ce360e
Pass correct report actions
MonilBhavsar 3931f71
if reportActions exist, use onyx local data to render the messages
gedu 05cc1be
Merge branch 'main' into monil-fixNewMarkerLine
MonilBhavsar f39a674
Don't set lastReadTime optimistically
MonilBhavsar 9a7ef68
handling the unread line on report list
gedu e022a7a
using the reportsActions from onyx
gedu 9132bc2
Merge branch 'main' into monil-fixNewMarkerLine
gedu a79ac80
style updated
gedu 15377c7
Some more updates to logic to fix 2 1:1 and switch cases
MonilBhavsar 279e1a2
Attempt to fix unread marker logic
MonilBhavsar bc15e03
Merge branch 'monil-fixNewMarkerLine' of https://github.com/Expensify…
gedu 0843bae
Clean up, and handling unread cases
gedu e8712d5
Merge branch 'main' into monil-fixNewMarkerLine
MonilBhavsar 1d899ca
Revert to another approach
MonilBhavsar 52cf638
Merge branch 'main' into monil-fixNewMarkerLine
MonilBhavsar 41602a4
Updated marking report as read
gedu eea32eb
Merge branch 'monil-fixNewMarkerLine' of github.com:gedu/App into mon…
gedu 1cf3101
Fix openReport call
MonilBhavsar 009063d
Add hook to track active chat
MonilBhavsar 347538c
Donot render marker when active on chat
MonilBhavsar 9c286f7
Donot render marker line for sender
MonilBhavsar 685467e
updated to handle marking message as unread
gedu 1775100
updated FAB button and handle when the user scroll up unread
gedu 287771e
Pass lastReadTime to server when marking message as read
MonilBhavsar cc49a2d
Merge branch 'monil-fixNewMarkerLine' of github.com:gedu/App into mon…
MonilBhavsar 04ab84f
Marking read message after skipped by scroll
gedu f5cfa42
Merge branch 'monil-fixNewMarkerLine' of github.com:gedu/App into mon…
gedu 0bb23c5
small clean up
gedu fc555c4
Merge branch 'main' into monil-geduFixNewMarkerLine
MonilBhavsar a5aebac
Merge branch 'main' into monil-fixNewMarkerLine
gedu eff076f
Merge branch 'main' into monil-fixNewMarkerLine
gedu 7afcf3c
clean up
gedu b9da5e2
Merge branch 'main' into monil-fixNewMarkerLine
gedu 4cb33db
Return early if user is inactive on chat
MonilBhavsar 668209e
Remove unecessary code
MonilBhavsar cbb485a
Don't set floating button if marker is null
MonilBhavsar 1026e4e
Fixed tests
gedu 0a5b0d6
Use accountID and pass correct param
MonilBhavsar 78ec995
Merge branch 'monil-fixNewMarkerLine' of github.com:gedu/App into mon…
MonilBhavsar 619d754
cleaning the userActiveSince value
gedu 6e248ab
fixed comments
gedu 36c762b
Merge branch 'main' into monil-fixNewMarkerLine
gedu d6ebe9e
removed unused var
gedu c86812a
fixed comments
gedu f16ed18
clean ups
gedu 9c84668
Merge branch 'main' into monil-fixNewMarkerLine
gedu 827612c
fixed marking unread twice in a row
gedu a2da574
Merge branch 'main' into monil-fixNewMarkerLine
gedu 7388fbf
removed console logs
gedu f6bd06a
Merge branch 'main' into monil-geduFixNewMarkerLine
MonilBhavsar 5d3edd4
Cleanup
MonilBhavsar File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should had used
getDBTimeWithSkewhere, this caused #54679