Skip to content

Commit

Permalink
Fix autocomplete in DM (mattermost#6233)
Browse files Browse the repository at this point in the history
Co-authored-by: Mattermod <[email protected]>
  • Loading branch information
iomodo and mattermod committed Sep 9, 2020
1 parent 0302153 commit 50179c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/suggestion/command_provider.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ export default class CommandProvider extends Provider {

handleWebapp(pretext, resultCallback) {
const command = pretext.toLowerCase();

const teamId = getCurrentTeamId(store.getState());
const selectedPost = getSelectedPost(store.getState());
let rootId;
if (this.isInRHS) {
Expand All @@ -143,7 +143,7 @@ export default class CommandProvider extends Provider {
...(rootId && {root_id: rootId, parent_id: rootId}),
};

Client4.getCommandAutocompleteSuggestionsList(command, channel.team_id, args).then(
Client4.getCommandAutocompleteSuggestionsList(command, teamId, args).then(
(data) => {
const matches = [];
let cmd = 'Ctrl';
Expand Down

0 comments on commit 50179c8

Please sign in to comment.