Page MenuHomePhabricator

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

Authored by ashoat on Wed, Oct 30, 11:47 AM.
Tags
None
Referenced Files
F3105346: D13828.id45478.diff
Wed, Oct 30, 10:25 PM
F3105136: D13828.diff
Wed, Oct 30, 8:30 PM
F3104446: D13828.id45478.diff
Wed, Oct 30, 5:18 PM
F3104419: D13828.id.diff
Wed, Oct 30, 5:17 PM
F3104413: D13828.diff
Wed, Oct 30, 5:16 PM
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.