Page MenuHomePhabricator

[web] Disable all the actions for a deleted message
ClosedPublic

Authored by tomek on Fri, Apr 4, 6:46 AM.
Tags
None
Referenced Files
F5776424: D14547.diff
Tue, Apr 15, 1:48 AM
Unknown Object (File)
Mon, Apr 14, 12:42 AM
Unknown Object (File)
Thu, Apr 10, 2:32 PM
Unknown Object (File)
Thu, Apr 10, 11:12 AM
Unknown Object (File)
Wed, Apr 9, 8:59 PM
Unknown Object (File)
Wed, Apr 9, 3:38 PM
F5353475: web-deleted-tooltip.png
Wed, Apr 9, 10:37 AM
F5353473: web-deleted-tooltip.png
Wed, Apr 9, 10:37 AM
Subscribers
None

Details

Summary

When a message is deleted, we shouldn't be able to perform any action to it, e.g. edit, react, pin, etc. On native, it is handled automatically because DeletedMessage doesn't handle a click action. On web, we have to set the tooltip actions to an empty array.

https://linear.app/comm/issue/ENG-10494/update-reaction-logic

web-deleted-tooltip.png (462×706 px, 32 KB)

Depends on D14546

Test Plan

Checked on both native and web that it isn't possible to e.g. react to a deleted message.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

tomek requested review of this revision.Fri, Apr 4, 7:05 AM

Can you share a screenshot of what a mouseover looks like in this case? Wondering if the timestamp still appears, and where it appears

This revision is now accepted and ready to land.Fri, Apr 4, 8:50 AM

Can you share a screenshot of what a mouseover looks like in this case? Wondering if the timestamp still appears, and where it appears

Sure! It appears but is displayed slightly off.

web-deleted-tooltip.png (462×706 px, 32 KB)

Looks a little weird, but it's okay

Block deleting a sidebar source in thick threads

Disable deleting thick sidebar sources

This revision is now accepted and ready to land.Mon, Apr 14, 6:21 AM