summaryrefslogtreecommitdiffstats
path: root/cmd/platform/oldcommands.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/platform/oldcommands.go')
-rw-r--r--cmd/platform/oldcommands.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/platform/oldcommands.go b/cmd/platform/oldcommands.go
index ee7f66567..15ebb25ba 100644
--- a/cmd/platform/oldcommands.go
+++ b/cmd/platform/oldcommands.go
@@ -478,7 +478,7 @@ func cmdJoinChannel() {
}
var channel *model.Channel
- if result := <-app.Srv.Store.Channel().GetByName(team.Id, flagChannelName); result.Err != nil {
+ if result := <-app.Srv.Store.Channel().GetByName(team.Id, flagChannelName, true); result.Err != nil {
l4g.Error("%v", result.Err)
flushLogAndExit(1)
} else {
@@ -539,7 +539,7 @@ func cmdLeaveChannel() {
}
var channel *model.Channel
- if result := <-app.Srv.Store.Channel().GetByName(team.Id, flagChannelName); result.Err != nil {
+ if result := <-app.Srv.Store.Channel().GetByName(team.Id, flagChannelName, true); result.Err != nil {
l4g.Error("%v", result.Err)
flushLogAndExit(1)
} else {