Page MenuHomePhabricator

[lib] Update chat selector to return an info telling if a message was deleted
ClosedPublic

Authored by tomek on Fri, Apr 4, 3:53 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Apr 19, 8:51 PM
Unknown Object (File)
Fri, Apr 18, 9:39 PM
Unknown Object (File)
Fri, Apr 18, 2:45 AM
Unknown Object (File)
Thu, Apr 17, 10:39 AM
Unknown Object (File)
Tue, Apr 15, 8:58 PM
Unknown Object (File)
Tue, Apr 15, 12:18 AM
Unknown Object (File)
Mon, Apr 14, 1:54 PM
Unknown Object (File)
Sat, Apr 12, 12:28 PM
Subscribers
None

Details

Summary

Add a new property to the item telling if a message was deleted.

https://linear.app/comm/issue/ENG-10319/update-the-ui-so-that-delete-operation-is-correctly-presented

Depends on D14542

Test Plan

Tested with the rest of the stack by checking if a deleted message is shown as deleted.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

tomek requested review of this revision.Fri, Apr 4, 4:12 AM
ashoat added inline comments.
lib/selectors/chat-selectors.js
500โ€“506 โ†—(On Diff #47654)

This can be simplified:

const deleted = !!(
  originalMessageInfo.id &&
  targetMessageDeleteStatusMap.get(originalMessageInfo.id)
);
This revision is now accepted and ready to land.Fri, Apr 4, 8:47 AM