* MM-11567: Autocomplete search in: for DMs and GMs
* More robust behavior on older versions and a fix on autocompletion
* Moving get display_name for search to a selector
* initial partial implementation of search date flags UI (on: before: after:)
* Make the calendar show correctly
* dismiss keyboard when showing the date suggestion since this type of input will primarily be entered through the calendar and later edited if needed
* fixed code style errors
* updates as per pull request comments
* fixed eslint errors
* changes as per pull request comments, removing unnecessary code
* added handling for hiding the date filter feature if the server version doesn't support it
* fixed eslint errors
* removed unnecessary property defaults and server version checks, as per PR suggestions
* this default is needed for the initial load of the component
* changed the way we capture the flag from the search string, this handles scenarios where multiple flags might be present in the search string that are handled by the same suggestion component as is the case here with date based flags
* need property declared to pass jslint rules
* eslint style fix, moved regex out into constants
* removed unused code and references
* updated as per pull request feedback
* updated to latest redux version
* changed to new search posts api that supports passing in of time zone utc offset to support date based search flags
* updated to the upcoming release version in preparation for merging to master
* Properly memoize DateSuggestion mapStateToProps
* Remove moment-timezone
* MM-11198: avoid duplicate keys in date lines
Ensure each dateline rendered as part of search, recent mentions, or flagged post list has a unique key, even if the same date itself appears multiple times.
* update post_list.test.js to actually test date boundaries, relying on TZ=utc export in package.json
* unit test makePreparePostIdsForSearchPosts
* fix eslint issues
* try TZ=GMT
* encode date lines using timestamps instead
This requires a few extra changes to the post list proper, but largely
simplifies things anyway.
* Replace "More New Messages Above" with "New Messages" that appears on top of the channel after joining
Signed-off-by: Saturnino Abril <saturnino.abril@gmail.com>
* add conditions in adding entry of start of new messages in preparing post IDs for post list
* remove post unread for user joinining the channel
* refactor and remove unnecessary conditional check
* fix and add test cases
* Fix reply count in post header
* Make channel loader to trigger manually
* post list selector for search
* Include date separators in search results
* Flagged posts
* Recent Mentions
* Retry option for flagged posts and recent mentions
* feedback review
* Update mattermost-redux
* Long post support
* Split file upload component
* Use fetch blob fork
* add progress to file upload
* Remove SERVER.PID from Makefile
* Preview only images
* remove unused prop
* add feature to add user to channel after at-mention
* update per comment and update mattermost-redux
* move sendAddToChannelEphemeralPost to actions folder
* rebase and fix merge conflicts, do clean up a bit
* update eslint's `comma-dangle` rule to `always-multiline`
* add check and fix scripts to package.json
* Invoke `yarn fix` to adopt the updated eslint rules. No other changes are included.
* Add support for DM with deactivated channel (teammate)
* add archive_icon
* add extra protection to prevent error when teammate is evetually deactivated
* Scroll to search result in preview
* Fix uni test
* Feedback review
* Remove listeners for mattermostManaged
* Remove specific event listeners for mattermostManaged
* Fix new message indicator
* Revert "Fix new message indicator"
This reverts commit 3732d2e53149f2e29b671cb6fd68e359d64aab36.
* Fixed new messages indicator and added unit tests for it
* Moved PostList to take a list of postIds instead of posts
* Removed usage of selectors that return posts from ChannelPostList and Thread
* Fixed search and switched to use getPostIdsAroundPost selector
* Removed use of selectors that returned posts from emoji reactions
* Updated makePreparePostIdsForPostList to be better memoized
* Fixed filter of join/leave messages
* Added unit tests for makePrepaprePostIdsForPostList
* Check if post edit/delete should be enabled more often
* Updated mattermost-redux version in yarn.lock
* RN-345 Only show refreshing indicator when channel is actually refreshing
* Added getCurrentLocale selector
* Added SwitchTeams component to channel drawer to reduce rerenders
* Reduced number of props passed from ChannelsList into children
* Removed unused prop from FilteredList
* Moved visible post calculation out of render function
* Don't set the channel to loading when not switching channels
* Added most of channel view state to blacklist
* Landscape support
* Fix image rotation on Android
* Fix landscape mode for login and login options
* Fix previewer will receive props
* Move device dimensions and others to redux
* Fix unit tests
* Include orientation and tablet in the store