summaryrefslogtreecommitdiffstats
path: root/api/command_join.go
diff options
context:
space:
mode:
Diffstat (limited to 'api/command_join.go')
-rw-r--r--api/command_join.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/api/command_join.go b/api/command_join.go
index 3c997dffd..2210d2857 100644
--- a/api/command_join.go
+++ b/api/command_join.go
@@ -4,6 +4,7 @@
package api
import (
+ "github.com/mattermost/platform/app"
"github.com/mattermost/platform/model"
)
@@ -33,7 +34,7 @@ func (me *JoinProvider) GetCommand(c *Context) *model.Command {
}
func (me *JoinProvider) DoCommand(c *Context, args *model.CommandArgs, message string) *model.CommandResponse {
- if result := <-Srv.Store.Channel().GetByName(c.TeamId, message); result.Err != nil {
+ if result := <-app.Srv.Store.Channel().GetByName(c.TeamId, message); result.Err != nil {
return &model.CommandResponse{Text: c.T("api.command_join.list.app_error"), ResponseType: model.COMMAND_RESPONSE_TYPE_EPHEMERAL}
} else {
channel := result.Data.(*model.Channel)