HomePhabricator
Diffusion Comm 91af7020a964

[web] Fix error when opening sidebar that user is not a member of

Description

[web] Fix error when opening sidebar that user is not a member of

Summary:
In sidebarInfos we store only sidebars that user is a member of and that are visible, but inline we show all sidebars.
Steps to reproduce error:

  1. Create sidebar with only one member of parent thread
  2. As not a member of a sidebar, press inline sidebar (requires next diff arc patched) and see invariant

Test Plan: Verify that opening inline sidebars is not causing invariant, and that sidebar is set as active in chat thread list

Reviewers: ashoat, palys-swm

Reviewed By: ashoat

Subscribers: zrebcu411, Adrian, atul, subnub, karol-bisztyga

Differential Revision: https://phabricator.ashoat.com/D680

Details

Provenance
KatPoAuthored on Feb 2 2021, 2:59 AM
Reviewer
ashoat
Differential Revision
Restricted Differential Revision
Parents
rCOMM79c1e37a8a1a: [web] Fix error when opening child thread from robotext
Branches
Unknown
Tags
Unknown