Only count joined channels

This commit is contained in:
Ken-Håvard Lieng 2019-01-30 04:48:37 +01:00
parent 71bfe92dae
commit 3e90e6c86d
5 changed files with 178 additions and 154 deletions

View file

@ -4,9 +4,6 @@ import TabListItem from 'components/TabListItem';
import connect from 'utils/connect';
const mapState = createStructuredSelector({
joined: (state, { server, target }) =>
get(state, ['channels', server, target, 'joined']),
error: (state, { server, target }) => {
const messages = get(state, ['messages', server, target]);