Page MenuHomePhabricator

[native][web] Hide edit label and reactions of deleted messages
AcceptedPublic

Authored by tomek on Fri, Apr 4, 7:11 AM.
Tags
None
Referenced Files
F5291540: D14548.diff
Mon, Apr 7, 6:27 PM
F5274624: D14548.id.diff
Mon, Apr 7, 4:47 AM
F5273817: D14548.id47660.diff
Mon, Apr 7, 4:07 AM
Unknown Object (File)
Sun, Apr 6, 3:41 PM
Unknown Object (File)
Sun, Apr 6, 3:41 PM
Unknown Object (File)
Sun, Apr 6, 10:22 AM
Unknown Object (File)
Sat, Apr 5, 3:32 PM
Subscribers
None

Details

Reviewers
kamil
ashoat
Summary

When a message is deleted, we should hide all the inline engagement components but a sidebars - because it is possible that a sidebar was created before the message was deleted.

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

Depends on D14547

Test Plan

Checked on both native and web that reactions and edit label aren't shown for a deleted message.

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

tomek requested review of this revision.Fri, Apr 4, 7:30 AM
ashoat added inline comments.
lib/shared/chat-message-item-utils.js
101

The implication is that it's impossible to delete a message from which a sidebar has been created, right? Do we make sure to prevent this on both sender/recipient sides for both keyserver-hosted and DM messages?

native/chat/chat-item-height-measurer.react.js
126

This can be false, since there is no way to get to this code branch if item.deleted is true

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