* [MM-62113] Force reload of team unreads when following/unfollowing a thread
* E2E test
* add test key
---------
Co-authored-by: yasserfaraazkhan <attitude3cena.yf@gmail.com>
* Prompt Team Admin before joining private channel
* fix and implement prompt when team admin joins via channel link
* update premission check and unit tests
* remove comment
* clean up some code
* update check to fix E2E tests
* [MM-62107] Remove the need to have the currently selected thread in the Unreads pane
* Remove selected thread from Followed Threads as well if it's not followed
---------
Co-authored-by: Caleb Roseland <caleb@calebroseland.com>
* Audit calls to searchPosts API
* Update server/public/model/post_search_results.go
Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com>
* Update server/public/model/post_search_results.go
* Update server/public/model/post_search_results.go
---------
Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com>
Co-authored-by: Mattermost Build <build@mattermost.com>
* Update Client4.createPost type
Creating a post does not need all fields of `Post` populated, adding
jsut the `channel_id` and `message` or `props` works fine.
* Use PartialExcept
* Adapt create types to api/v4/source/*.yml types
Reporting flaky tests on release branches isn't useful, as we aren't
likely to go back and patch these. Let's only surface flaky reports from
master. (PR semantics remain unchanged).
* MM-61641: Update post options to use semantic list elements
* MM-61641: Fix lint
* Apply suggestions from code review
---------
Co-authored-by: Mattermost Build <build@mattermost.com>
Co-authored-by: Harrison Healey <harrisonmhealey@gmail.com>
We add a new field delete_at in the channels template.
This field is then searched in the SearchChannels function.
Also added tests to verify that archived channels are searched
properly, and also indexed correctly.
https://mattermost.atlassian.net/browse/MM-62295
```release-note
- Now archived channels are searchable with ES/OS if TeamSettings.ExperimentalViewArchivedChannels is enabled.
- If there are old channels which were archived before a bulk index was run, users would need to purge indexes, and do bulk index again. Because those old archived channels are removed from the index when a bulk index is run.
```
Co-authored-by: Mattermost Build <build@mattermost.com>
* feat: Add profile loading for group channels in search autocomplete
* refactor: Use getChannelNameForSearchShortcut for channel name formatting
* refactor: Improve channel search term generation logic
* refactor: Simplify search channel provider logic and improve code readability
* fix: Improve channel search shortcut name handling with fallback
* refactor: Avoid overriding channels parameter in search channel provider
* refactor: Revert variable names to original style in search channel provider
* feat: Add getChannelNameForSearchShortcut selector for channel name retrieval
* refactor: Extract common channel name search logic into helper function
* fix text overflowing from search bar
* test: Add tests for completeDirectGroupInfo function
* test: Add type assertion for UsersState in channel_utils test
* test: add test case for completeDirectGroupInfo with omitCurrentUser false
* improve name composition for channels in search
* eslint
* lint
---------
Co-authored-by: Mattermost Build <build@mattermost.com>