fix/11688: when deleting the last message, the chat is marked as unread for a moment - #12583
Conversation
|
@tienifr should this be a draft still? |
|
@NikkiWines This PR is ready for review |
a8bc224 to
fa019e9
Compare
|
I must force push in here because in the last commit I forget to sign the commit. Sorry about that |
|
Hi @eVoloshchak I just updated the comment, please help to check again. Thanks |
|
|
@tienifr, please overexplain testing steps |
eVoloshchak
left a comment
There was a problem hiding this comment.
Looks good and tests well!
cc: @NikkiWines
NikkiWines
left a comment
There was a problem hiding this comment.
Tests well! Only thing I would suggest adding @tienifr is steps for testing this offline as well
|
@NikkiWines looks like this was merged without the checklist test passing. Please add a note explaining why this was done and remove the |
|
melvin-bot is lying, tests were passing! |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by @NikkiWines in version: 1.2.28-0 🚀
|
|
🚀 Deployed to staging by @NikkiWines in version: 1.2.28-0 🚀
|
|
🚀 Deployed to production by @roryabraham in version: 1.2.28-2 🚀
|
Details
When deleting a message we are only updating lastReadSequenceNumber in optimistic report so It causes the difference between lastReadSequenceNumber and maxSequenceNumber in optimistic for a moment. This PR will fix that by updating maxSequenceNumber in optimistic report too.
Fixed Issues
$ #11688
$ #11688 (comment)
Tests
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*filesWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)/** comment above it */thisproperly so there are no scoping issues (i.e. foronClick={this.submit}the methodthis.submitshould be bound tothisin the constructor)thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)Avataris modified, I verified thatAvataris working as expected in all cases)PR Reviewer Checklist
The reviewer will copy/paste it into a new comment and complete it after the author checklist is completed
### Fixed Issuessection aboveTestssectionQA stepssectiontoggleReportand notonIconClick).src/languages/*filesWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarhave been tested & I retested again)/** comment above it */thisproperly so there are no scoping issues (i.e. foronClick={this.submit}the methodthis.submitshould be bound tothisin the constructor)thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)Avataris modified, I verified thatAvataris working as expected in all cases)Screenshots
Web
Screen.Recording.2022-11-09.at.15.40.42.video-converter.com.mp4
Mobile Web - Chrome
Screen.Recording.2022-11-09.at.16.06.32.mp4
Mobile Web - Safari
Screen.Recording.2022-11-09.at.15.43.07.video-converter.com.mp4
Desktop
Screen.Recording.2022-11-09.at.15.48.45.video-converter.com.mp4
iOS
Screen.Recording.2022-11-09.at.16.04.03.video-converter.com.mp4
Android
Screen.Recording.2022-11-09.at.16.22.02.mp4