Page MenuHomePhabricator

[lib] Only show reactions to viewer's messages in MessagePreview
AcceptedPublic

Authored by ashoat on Oct 30 2024, 11:47 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Dec 4, 12:23 AM
Unknown Object (File)
Fri, Nov 29, 6:56 PM
Unknown Object (File)
Thu, Nov 28, 5:16 AM
Unknown Object (File)
Wed, Nov 27, 2:53 AM
Unknown Object (File)
Nov 18 2024, 3:56 PM
Unknown Object (File)
Nov 16 2024, 2:21 AM
Unknown Object (File)
Nov 10 2024, 10:17 PM
Unknown Object (File)
Nov 10 2024, 6:54 AM
Subscribers
None

Details

Reviewers
tomek
Summary

Part of addressing ENG-9556.

Depends on D14154

Test Plan

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

lib/shared/messages/reaction-message-spec.js
234 ↗(On Diff #45478)

I considered also hiding all "unreactions" (remove_reaction) as well, but I decided against it because it might accidentally result in the prior add_reaction message being shown, which would be misleading given it was reversed.

Ideally we could have something like fetchMessage that would return all reactions on a message. But this would need to work for thin threads, which would require querying the keyserver.

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