muted channels fix (#7436)

This commit is contained in:
jessopb 2022-01-23 13:59:39 -05:00 committed by GitHub
parent c1a54f9707
commit fe95db15b2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -28,7 +28,7 @@ export default handleActions(
const sanitizedBlocked = blocked && blocked.filter((e) => typeof e === 'string');
return {
...state,
blockedChannels: sanitizedBlocked && sanitizedBlocked.length ? sanitizedBlocked : state.blockedChannels,
blockedChannels: sanitizedBlocked || state.blockedChannels,
};
},
},