summaryrefslogtreecommitdiffstats
path: root/model/config.go
diff options
context:
space:
mode:
authorCorey Hulen <corey@hulen.com>2017-06-29 07:51:15 -0700
committerChristopher Speller <crspeller@gmail.com>2017-06-29 07:51:15 -0700
commiteb7561e05bb797a0f925ac69079040016926eef5 (patch)
treede1406e5fad24b3559cd05e7e1e47c3636895b82 /model/config.go
parentbf81fea9f8999c0b8949a9c464ef37b13ba0712b (diff)
downloadchat-eb7561e05bb797a0f925ac69079040016926eef5.tar.gz
chat-eb7561e05bb797a0f925ac69079040016926eef5.tar.bz2
chat-eb7561e05bb797a0f925ac69079040016926eef5.zip
PLT-6610 sending websocket event for last channel viewed (#6787)
Diffstat (limited to 'model/config.go')
-rw-r--r--model/config.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/model/config.go b/model/config.go
index 90b3bd6c8..6d62aab91 100644
--- a/model/config.go
+++ b/model/config.go
@@ -158,6 +158,7 @@ type ServiceSettings struct {
TimeBetweenUserTypingUpdatesMilliseconds *int64
EnablePostSearch *bool
EnableUserTypingMessages *bool
+ EnablChannelViewedMessages *bool
EnableUserStatuses *bool
ClusterLogTimeoutMilliseconds *int
}
@@ -1300,6 +1301,11 @@ func (o *Config) SetDefaults() {
*o.ServiceSettings.EnableUserTypingMessages = true
}
+ if o.ServiceSettings.EnablChannelViewedMessages == nil {
+ o.ServiceSettings.EnablChannelViewedMessages = new(bool)
+ *o.ServiceSettings.EnablChannelViewedMessages = true
+ }
+
if o.ServiceSettings.EnableUserStatuses == nil {
o.ServiceSettings.EnableUserStatuses = new(bool)
*o.ServiceSettings.EnableUserStatuses = true