Page MenuHomePhabricator

[web] Convert activeChatThreadItem to a hook
ClosedPublic

Authored by ashoat on Wed, Oct 30, 11:39 AM.
Tags
None
Referenced Files
F3376212: D13822.diff
Tue, Nov 26, 10:42 PM
Unknown Object (File)
Tue, Nov 26, 5:05 AM
Unknown Object (File)
Tue, Nov 26, 3:29 AM
Unknown Object (File)
Mon, Nov 25, 8:38 AM
Unknown Object (File)
Sun, Nov 24, 8:10 AM
Unknown Object (File)
Sat, Nov 23, 5:38 AM
Unknown Object (File)
Thu, Nov 21, 12:26 PM
Unknown Object (File)
Thu, Nov 21, 8:40 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.