mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
MM-32652 /threads?unread=true returns null threads and no counts if there are no unread threads (#16885)
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
This commit is contained in:
@@ -5429,6 +5429,14 @@ func TestGetThreadsForUser(t *testing.T) {
|
||||
|
||||
require.Equal(t, uss2.Threads[0].PostId, rootIdAfter)
|
||||
|
||||
uss3, resp3 := th.Client.GetUserThreads(th.BasicUser.Id, th.BasicTeam.Id, model.GetUserThreadsOpts{
|
||||
Deleted: false,
|
||||
PageSize: 10,
|
||||
After: rootId + "__bad",
|
||||
})
|
||||
require.Nil(t, resp3.Error)
|
||||
require.NotNil(t, uss3.Threads)
|
||||
require.Len(t, uss3.Threads, 0)
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user