From ac2c91c50763876c2949d4a6b67e4300be826cc2 Mon Sep 17 00:00:00 2001 From: Jason Blais Date: Mon, 3 Jul 2017 09:01:14 -0400 Subject: Fix EnablChannelViewedMessages typo (#6822) * Update config.json * Update config.go * Update config.go * Update channel.go * Update post.go * Update diagnostics.go * Update config.go --- app/channel.go | 4 ++-- app/diagnostics.go | 2 +- app/post.go | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'app') diff --git a/app/channel.go b/app/channel.go index 5dafa1f76..2a710a3c0 100644 --- a/app/channel.go +++ b/app/channel.go @@ -1091,7 +1091,7 @@ func UpdateChannelLastViewedAt(channelIds []string, userId string) *model.AppErr return result.Err } - if *utils.Cfg.ServiceSettings.EnablChannelViewedMessages { + if *utils.Cfg.ServiceSettings.EnableChannelViewedMessages { for _, channelId := range channelIds { message := model.NewWebSocketEvent(model.WEBSOCKET_EVENT_CHANNEL_VIEWED, "", "", userId, nil) message.Add("channel_id", channelId) @@ -1158,7 +1158,7 @@ func ViewChannel(view *model.ChannelView, userId string, clearPushNotifications return result.Err } - if *utils.Cfg.ServiceSettings.EnablChannelViewedMessages { + if *utils.Cfg.ServiceSettings.EnableChannelViewedMessages { message := model.NewWebSocketEvent(model.WEBSOCKET_EVENT_CHANNEL_VIEWED, "", "", userId, nil) message.Add("channel_id", view.ChannelId) go Publish(message) diff --git a/app/diagnostics.go b/app/diagnostics.go index 6460f36d2..97f4df0da 100644 --- a/app/diagnostics.go +++ b/app/diagnostics.go @@ -189,7 +189,7 @@ func trackConfig() { "allow_edit_post": *utils.Cfg.ServiceSettings.AllowEditPost, "post_edit_time_limit": *utils.Cfg.ServiceSettings.PostEditTimeLimit, "enable_user_typing_messages": *utils.Cfg.ServiceSettings.EnableUserTypingMessages, - "enable_channel_viewed_messages": *utils.Cfg.ServiceSettings.EnablChannelViewedMessages, + "enable_channel_viewed_messages": *utils.Cfg.ServiceSettings.EnableChannelViewedMessages, "time_between_user_typing_updates_milliseconds": *utils.Cfg.ServiceSettings.TimeBetweenUserTypingUpdatesMilliseconds, "cluster_log_timeout_milliseconds": *utils.Cfg.ServiceSettings.ClusterLogTimeoutMilliseconds, "enable_post_search": *utils.Cfg.ServiceSettings.EnablePostSearch, diff --git a/app/post.go b/app/post.go index 841048cbc..57e4048a6 100644 --- a/app/post.go +++ b/app/post.go @@ -49,7 +49,7 @@ func CreatePostAsUser(post *model.Post) (*model.Post, *model.AppError) { l4g.Error(utils.T("api.post.create_post.last_viewed.error"), post.ChannelId, post.UserId, result.Err) } - if *utils.Cfg.ServiceSettings.EnablChannelViewedMessages { + if *utils.Cfg.ServiceSettings.EnableChannelViewedMessages { message := model.NewWebSocketEvent(model.WEBSOCKET_EVENT_CHANNEL_VIEWED, "", "", post.UserId, nil) message.Add("channel_id", post.ChannelId) go Publish(message) -- cgit v1.2.3-1-g7c22