Page MenuHomePhabricator

[web] Convert activeChatThreadItem to a hook
ClosedPublic

Authored by ashoat on Oct 30 2024, 11:39 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Nov 28, 10:14 PM
Unknown Object (File)
Wed, Nov 27, 2:03 PM
Unknown Object (File)
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
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 ↗(On Diff #45472)

It seems like we could use useChatThreadItem here

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

Reuse useChatThreadItem

web/selectors/chat-selectors.js
57–65 ↗(On Diff #45472)

Good call!

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