Page MenuHomePhabricator

[lib] Hide membership robotext from MessagePreview in thin threads
Needs ReviewPublic

Authored by ashoat on Wed, Oct 30, 11:48 AM.
Tags
None
Referenced Files
F3104734: D13829.id.diff
Wed, Oct 30, 6:26 PM
F3104733: D13829.id45479.diff
Wed, Oct 30, 6:26 PM
F3104657: D13829.diff
Wed, Oct 30, 6:10 PM
F3104468: D13829.id45479.diff
Wed, Oct 30, 5:18 PM
F3104437: D13829.id.diff
Wed, Oct 30, 5:18 PM
F3104394: D13829.diff
Wed, Oct 30, 5:16 PM
Subscribers
None

Details

Reviewers
tomek
Summary

Part of addressing ENG-9556.

This diff makes it so that in thin threads, we don't show robotext about users joining/leaving/being added/being removed in MessagePreview on both web and native.

Depends on D13828

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/add-members-message-spec.js
233

Flow didn't like when I tried checking params.threadInfo.thick instead