MM-23015: Enable or disable group mentions (#14010)
* MM-23015: Enable or disable group mentions + show them in suggestion list Co-authored-by: Catalin Tomai <catalin.tomai@mattermost.com>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
0bfb063c78
Коммит
b90f4f46e2
@@ -75,6 +75,7 @@ type Params struct {
|
||||
GroupIDs string
|
||||
IncludeTotalCount bool
|
||||
IncludeDeleted bool
|
||||
FilterAllowReference bool
|
||||
}
|
||||
|
||||
func ParamsFromRequest(r *http.Request) *Params {
|
||||
@@ -277,6 +278,10 @@ func ParamsFromRequest(r *http.Request) *Params {
|
||||
params.NotAssociatedToTeam = query.Get("not_associated_to_team")
|
||||
params.NotAssociatedToChannel = query.Get("not_associated_to_channel")
|
||||
|
||||
if val, err := strconv.ParseBool(query.Get("filter_allow_reference")); err == nil {
|
||||
params.FilterAllowReference = val
|
||||
}
|
||||
|
||||
if val, err := strconv.ParseBool(query.Get("paginate")); err == nil {
|
||||
params.Paginate = &val
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user