Page MenuHomePhabricator

[web] Convert activeChatThreadItem to a hook
ClosedPublic

Authored by ashoat on Wed, Oct 30, 11:39 AM.
Tags
None
Referenced Files
F3352363: D13822.id45530.diff
Sat, Nov 23, 5:38 AM
Unknown Object (File)
Thu, Nov 21, 12:26 PM
Unknown Object (File)
Thu, Nov 21, 8:40 AM
Unknown Object (File)
Sat, Nov 16, 3:50 PM
Unknown Object (File)
Sat, Nov 16, 9:54 AM
Unknown Object (File)
Thu, Nov 14, 8:04 PM
Unknown Object (File)
Thu, Nov 14, 1:04 PM
Unknown Object (File)
Mon, Nov 11, 5:59 AM
Subscribers
None

Details

Summary

This will make the next diff a little easier.

Depends on D13821

Test Plan

Flow, and tested in combination with the rest of the stack:

  1. Make sure membership operations (user joining / leaving) don't appear in MessagePreview
  2. Make sure reactions to the viewer's messages still appear in MessagePreview
  3. Make sure reactions to other user's messages don't appear in MessagePreview
  4. Test fresh login to thread with only one message in the last 14 days, which is a reaction to a non-viewer message. Make sure the reaction initially appears in MessagePreview, but then is replaced after more messages are fetched by the client

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

tomek added inline comments.
web/selectors/chat-selectors.js
57–65

It seems like we could use useChatThreadItem here

This revision is now accepted and ready to land.Thu, Oct 31, 5:26 AM

Reuse useChatThreadItem

web/selectors/chat-selectors.js
57–65

Good call!

This revision was landed with ongoing or failed builds.Thu, Oct 31, 11:38 AM
This revision was automatically updated to reflect the committed changes.