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

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,
};
},
},