Custom status feature (#16835)
* Create the system console setting and send to webapp * MI-1145: Add custom status APIs * MI-1145 Add slash commands to set and clear status * Add validation for custom status API * Trim custom status message * Code refactoring - Run gofmt - Rename constants * Remove sendUserUpdated webhook event * Fix recent custom status length * Update error conditions * Disable /status slash command when config setting is off * MI-1155: Create the feature flag for custom status APIs and slash commands * Move recent custom statuses to user preferences (#7) * Move recent custom statuses to user preferences * Code refactoring and feedback changes * Update slash command text and emoji regex * Make the custom status feature flag off by default * Update SetCustomStatus, handle recents not set better * Update status codes * Update slash command handling * Add telementry settings * Fix i18n order * Revert "Fix i18n order" This reverts commit 499f7eaca8180336f5bcca360cc0133365899e08. * Update i18n strings
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
22308ea21c
Коммит
7585e16d84
@@ -1857,6 +1857,7 @@ type TeamSettings struct {
|
||||
EnableOpenServer *bool `access:"authentication"`
|
||||
EnableUserDeactivation *bool `access:"experimental"`
|
||||
RestrictCreationToDomains *string `access:"authentication"` // telemetry: none
|
||||
EnableCustomUserStatuses *bool `access:"site"`
|
||||
EnableCustomBrand *bool `access:"site"`
|
||||
CustomBrandText *string `access:"site"`
|
||||
CustomDescriptionText *string `access:"site"`
|
||||
@@ -1910,6 +1911,10 @@ func (s *TeamSettings) SetDefaults() {
|
||||
s.RestrictCreationToDomains = NewString("")
|
||||
}
|
||||
|
||||
if s.EnableCustomUserStatuses == nil {
|
||||
s.EnableCustomUserStatuses = NewBool(true)
|
||||
}
|
||||
|
||||
if s.EnableCustomBrand == nil {
|
||||
s.EnableCustomBrand = NewBool(false)
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user