-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Deleted messages are properly gone from the UI without re-appearing briefly #10892
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So after testing my branch I see that this issue is no longer present. How would you like to proceed?
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.
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 Issues
section aboveTests
sectionQA steps
sectiontoggleReport
and notonIconClick
)src/languages/*
filesSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
displayName
propertythis
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG
)Avatar
is modified, I verified thatAvatar
is 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 Issues
section aboveTests
sectionQA steps
sectiontoggleReport
and notonIconClick
).src/languages/*
filesSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
have been tested & I retested again)/** comment above it */
displayName
propertythis
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG
)Avatar
is modified, I verified thatAvatar
is 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