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. Clicking it again will unpin them.

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. Clicking it again will unpin them.