Click on the channel or team member under direct messages.
Click on the pin icon at the top right corner of your screen to pin team member/channel to your left navigation bar. Clicking it again will unpin them.
Note: We can pin an unlimited number of chats but it will show up to 7 channels on the left panel.