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 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/channel.go') 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) -- cgit v1.2.3-1-g7c22