diff options
author | Chris <ccbrown112@gmail.com> | 2018-03-07 12:36:40 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-07 12:36:40 -0600 |
commit | e8943936c51450540a4f2e8e7a2f3a2af90d14db (patch) | |
tree | bc7d32557780a2235a4f9a878d3b0841a1df0bda /app/channel.go | |
parent | fd9ee780ed713c10f122f9eb83e07bfdf09ce4a4 (diff) | |
download | chat-e8943936c51450540a4f2e8e7a2f3a2af90d14db.tar.gz chat-e8943936c51450540a4f2e8e7a2f3a2af90d14db.tar.bz2 chat-e8943936c51450540a4f2e8e7a2f3a2af90d14db.zip |
general cleanup (#8387)
Diffstat (limited to 'app/channel.go')
-rw-r--r-- | app/channel.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/channel.go b/app/channel.go index 76147a508..4e294abbb 100644 --- a/app/channel.go +++ b/app/channel.go @@ -377,7 +377,7 @@ func (a *App) postChannelPrivacyMessage(user *model.User, channel *model.Channel })[channel.Type] post := &model.Post{ ChannelId: channel.Id, - Message: fmt.Sprintf(utils.T("api.channel.change_channel_privacy." + privacy)), + Message: utils.T("api.channel.change_channel_privacy." + privacy), Type: model.POST_CHANGE_CHANNEL_PRIVACY, UserId: user.Id, Props: model.StringInterface{ @@ -1062,7 +1062,7 @@ func (a *App) LeaveChannel(channelId string, userId string) *model.AppError { return err } - if channel.Name == model.DEFAULT_CHANNEL && *a.Config().ServiceSettings.ExperimentalEnableDefaultChannelLeaveJoinMessages == false { + if channel.Name == model.DEFAULT_CHANNEL && !*a.Config().ServiceSettings.ExperimentalEnableDefaultChannelLeaveJoinMessages { return nil } |