Regression: Custom slash commands don't work in direct or group message channels

Description

1. Open Main Menu > Integrations > Slash Commands > Add Slash Command
2. Enter URL:
http://hidden-peak-21733.herokuapp.com/test_inchannel
3. Enter Display Name: "Test Message"
3. Enter Trigger Word: test-message
4. Add, hit Enter to close confirmation
5. In a DM channel, type "/test-message" and post

Observed: "We couldn't find the existing team" and console errors.

QA Test Steps

None

Mana

None

Assignee

Jonathan Fritz

QA Assignee

None

Reporter

Jason Blais

Epic Link

None

Fix versions

None

Mattermost Team

None

Sprint

None

Labels

None

QA Testing Areas

None

GitHub Issue

None

Components

None

Severity

None
Configure