const channelSlug =
        channel.channel_type === 'direct'
          ? `@${channel.slug
              .replace(`${window.currentUser.username}/`, '')
              .replace(`/${window.currentUser.username}`, '')}`