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)
Thu, Nov 28, 5:16 AM
Unknown Object (File)
Wed, Nov 27, 2:53 AM
Unknown Object (File)
Mon, Nov 18, 3:56 PM
Unknown Object (File)
Sat, Nov 16, 2:21 AM
Unknown Object (File)
Sun, Nov 10, 10:17 PM
Unknown Object (File)
Sun, Nov 10, 6:54 AM
Unknown Object (File)
Thu, Nov 7, 12:30 PM
Unknown Object (File)
Thu, Nov 7, 6:44 AM
Subscribers
None

Details

Reviewers
tomek
Summary

Part of addressing ENG-9556.

Depends on D13827

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

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.Thu, Oct 31, 5:57 AM