Deleted messages are properly gone from the UI without re-appearing briefly#10892
Deleted messages are properly gone from the UI without re-appearing briefly#10892PauloGasparSv wants to merge 5 commits into
Conversation
|
Testing deletion of attachments and finishing with screenshots/videos. Once that's done the P.R. will be ready for reviews |
…leted-message-blink
…leted-message-blink
…leted-message-blink
…leted-message-blink
|
@cristipaval @marcaaron I cannot add the remaining evidences here because my local dev environment is not working correctly, messages are duplicating and other strange pusher related behaviors are happening. Removing WIP from this, can you please review despite that? |
Sure thing. That sounds really frustrating. We should get to the bottom of this one. It seems like it will be very hard to work on app without a reliable dev environment and you will not be the only one to have issues. |
| }, | ||
| }, | ||
| ]; | ||
|
|
There was a problem hiding this comment.
Just rubber ducking so this change makes sense to me...
The #10780 introduced a bug where in some cases (usually if the api took some time to delete the message) if you successfully deleted a message it would re-appear for a second and then disappear again.
So by setting the pendingAction: null on success we would briefly show the message again because it is seen as "not deleted" otherwise and since it is not pendingAction === 'delete' then we would not hide it in OfflineWithFeedback?
I think maybe this change will also be fixed by the PR changes we are discussing here #10929 (comment)
I'll do some testing and report back.
There was a problem hiding this comment.
So after testing my branch I see that this issue is no longer present. How would you like to proceed?
cc chiragsalian kavimuru luacmartins
Details
The delete comment refactor P.R. introduced a bug where in some cases (usually if the api took some time to delete the message) if you successfully deleted a message it would re-appear for a second and then disappear again.
Now, if a message is successfully deleted it should not re-appear for a brief time.
Fixed Issues
$ #10799
$ #10753
Tests
For all the tests (not QA) do the following:
+ sleep(2); self::editComment($authToken, $reportID, $reportActionID, '', $sequenceNumber);Delete a comment online
Delete a comment offline
PR Review Checklist
Contributor (PR Author) Checklist
### Fixed Issuessection aboveTestssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*filesSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)/** comment above it */displayNamepropertythisproperly 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 Contributor+ will copy/paste it into a new comment and complete it after the author checklist is completed
### Fixed Issuessection aboveTestssectionQA stepssectiontoggleReportand notonIconClick).src/languages/*filesSTYLE.md) were followedAvatar, I verified the components usingAvatarhave been tested & I retested again)/** comment above it */displayNamepropertythisproperly 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)QA Steps
Delete a comment online
Delete a comment offline
Screenshots
Web
Web.mov
Mobile Web
Desktop
iOS
Android