diff options
author | Stan Chan <stanchan@users.noreply.github.com> | 2018-04-12 12:02:36 -0700 |
---|---|---|
committer | Joram Wilander <jwawilander@gmail.com> | 2018-04-12 15:02:36 -0400 |
commit | 7826774a14ebf9a3bab11069a8f2ff8947fe931a (patch) | |
tree | 8159c364cb70a640cf737e1abe24751b58b741cc /model/config.go | |
parent | 8df6d5cc30d22a608c58635449047e421add82ae (diff) | |
download | chat-7826774a14ebf9a3bab11069a8f2ff8947fe931a.tar.gz chat-7826774a14ebf9a3bab11069a8f2ff8947fe931a.tar.bz2 chat-7826774a14ebf9a3bab11069a8f2ff8947fe931a.zip |
Add Auto Responder handler (#8386)
WIP Out Of Office
Return error for status command if user status is OOO
Ignore notifications if Out Of Office
Disable AutoResponder if status is set to online
Add test for AutoResponder
DisableAutoResponse when manually setting status
Remove check on status slash command
return early if user does not exists in SendAutoResponse method
Add proper error handling
Add a newline after error handling
Revert back to err == nil in api4/status.go
Remove a.Go when using a.Publish
Add name consistency with the feature auto responder
Last changes for name consistency, also fix failing test with auto_responder
Fix names of functions in auto responder test
Add ExperimentalEnableAutomaticReplies flag
Auto Responder reply to a post
Diffstat (limited to 'model/config.go')
-rw-r--r-- | model/config.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/model/config.go b/model/config.go index 6c6cf90e9..8d1a61926 100644 --- a/model/config.go +++ b/model/config.go @@ -991,6 +991,7 @@ type TeamSettings struct { MaxNotificationsPerChannel *int64 EnableConfirmNotificationsToChannel *bool TeammateNameDisplay *string + ExperimentalEnableAutomaticReplies *bool ExperimentalTownSquareIsReadOnly *bool ExperimentalPrimaryTeam *string } @@ -1085,6 +1086,10 @@ func (s *TeamSettings) SetDefaults() { s.EnableConfirmNotificationsToChannel = NewBool(true) } + if s.ExperimentalEnableAutomaticReplies == nil { + s.ExperimentalEnableAutomaticReplies = NewBool(false) + } + if s.ExperimentalTownSquareIsReadOnly == nil { s.ExperimentalTownSquareIsReadOnly = NewBool(false) } |