Every channel switch triggers a fetch for users in all GM channels for the user
Steps to Reproduce
1. Have one or more GM channels, even if auto-closed
2. Do one of the following
Channel switch between two non-GM channels
Focus the app/browser after a delay
1. No calls to api/v4/users?in_channel=<…>&page=0&per_page=8&sort= (unless this is the first page load)
1. API request against /api/v4/users?in_channel=<channel_id>&page=0&per_page=8&sort= for each GM channel. This gets worse with more GM channels, slamming both the server and client with rendering updates.
QA Test Steps
See steps to reproduce
For now, In have added this to release testing on Integrations tab that is covered by QA. Will follow-up with QA about where best to add this to release testing.
Tested and passed on 5.7 RC1 same behavior as noted on 5.6 RC3
Tested and passed on 5.6-RC3. This issue is resolved.
Calls to api/v4/users?in_channel=<…>&page=0&per_page=8&sort= appear on 1st page load as expected but are not visible every time the user switches channel.
Leaving this task in resolved to test 5.7 cherry-pick.