Websockets not properly updating redux state when a team is added or removed from a team scheme

Description

Steps:

1) As a sysadmin create a team scheme that removes the permission to post reactions for members. Save it without associated a team to the scheme.
2) Observe that a member of that team can still post reactions in a channel.
3) Associate the team scheme to the team.

Actual: Channel members in the team can still use reactions.
Expected: They cannot use reactions as per the team scheme.

Note: refreshing the browser fixes the issue, therefore it's a WS bug.

QA Test Steps

None

Mana

None

Assignee

Unassigned

QA Assignee

None

Reporter

Martin Kraft

Epic Link

None

Fix versions

Mattermost Team

Enterprise

Sprint

Labels

None

QA Testing Areas

Permissions

GitHub Issue

None

Components

None

Severity

None
Configure