optionally exclude threads in direct messages (#29042)
* optionally exclude threads in direct messages * add excludeDirect option in client4 * Skip flaky test * refactor double negate --------- Co-authored-by: Mattermost Build <build@mattermost.com>
Этот коммит содержится в:
@@ -972,6 +972,7 @@ func TestUpdateChannelBookmarkSortOrder(t *testing.T) {
|
||||
})
|
||||
|
||||
t.Run("a websockets event should be fired as part of editing a bookmark's sort order", func(t *testing.T) {
|
||||
t.Skip("MM-61301")
|
||||
now := model.GetMillis()
|
||||
webSocketClient, err := th.CreateWebSocketClient()
|
||||
require.NoError(t, err)
|
||||
|
||||
@@ -3290,8 +3290,10 @@ func getThreadsForUser(c *Context, w http.ResponseWriter, r *http.Request) {
|
||||
options.After = r.URL.Query().Get("after")
|
||||
totalsOnlyStr := r.URL.Query().Get("totalsOnly")
|
||||
threadsOnlyStr := r.URL.Query().Get("threadsOnly")
|
||||
excludeDirectStr := r.URL.Query().Get("excludeDirect")
|
||||
options.TotalsOnly, _ = strconv.ParseBool(totalsOnlyStr)
|
||||
options.ThreadsOnly, _ = strconv.ParseBool(threadsOnlyStr)
|
||||
options.ExcludeDirect, _ = strconv.ParseBool(excludeDirectStr)
|
||||
|
||||
// parameters are mutually exclusive
|
||||
if options.Before != "" && options.After != "" {
|
||||
|
||||
Ссылка в новой задаче
Block a user