mattermost-mobile/app/mm-redux/actions
Miguel Alatzar f79f9dc697
[MM-23761] [MM-25766] Add "More Messages" button (#4526)
* Add more messages button

* Update existing tests

* Various fixes:

* Use viewAreaCoveragePercentThreshold over itemVisiblePercentThreshold
* Remove currentUserId check when adding New Message line to postIds and
  instead update the channel last viewed time when an own post is received

* Update snapshots

* Add showMoreMessagesButton prop and default to false

* Android fixes

* Add tests

* Localize more messages text

* Use FormattedText

* i18 extract

* Style fixes

* Account for network indicator

* Fix for failing tests

* Various fixes:

* Set the unreadMessageCount when POST_UNREAD_SUCCESS is dispatched
  with a positive deltaMsgs
* Hide the more messages button when the unread count decreases or
  when the new message line is removed shortly after loading the
  channel

* No need for POST_UNREAD_SUCCESS if we manually call onViewableItemsChanged

* Reset unread count if current channel on channel mount

* Animate text opacity

* Compare indeces to determine when scrolling has ended

* Fix opacity animation trigger

* try with scrolling to the last rendered item

* Add onScrollEndIndex

* Improve animations

* Don't track moreCount in state

* Use moreText over prevNewMessageLineIndex to determine firstPage

* Update intl message format and call cancel in componentDidUpdate when needed

* Fix intl format

* Remove opacity animation and countText

* Fix pressed not being reset

* No need to separate intl func

* Return after resetting

* Fix accidental removal of setState call

* Reset pressed when newLineMessageIndex changes

* Use default windowSize and lower POST_CHUNK_SIZE and delays

* Queue a cancel timer that gets cleared only when the newMessageLineIndex changes

* Define uncancel func

* Increase cancelTimer delay

* Subtract read posts from unread count and account for retry indicator

* Add retry bar indicator tests

* Use props.unreadCount

* Fix handling of newMessageLineIndex change

* Fix handling of newMessageLineIndex change take 2

* Fix handling of newMessageLineIndex change take 3

* Use 'native' TouchableWithFeedback with dark overlay

* Fix handling of manually unread

* Update chunk and window sizes

* Fix hsl

* Update text only when newMessageLineIndex/endIndex is reached

* Don't delay cancel if when no more unreads

* Fixes for when opening the app

* No need to process viewableItems when unreadCount is 0

* Remove line

* Don't show if unreadCount is 0

Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
2020-07-09 13:30:30 -07:00
..
bots.test.js MM-24285 Use FastImage instead of Image (#4218) 2020-04-28 23:23:39 +08:00
bots.ts [MM-23520] Port mattermost-redux (#4088) 2020-03-31 11:09:26 -07:00
channel_categories.ts [MM-23520] Port mattermost-redux (#4088) 2020-03-31 11:09:26 -07:00
channels.test.js MM-24285 Use FastImage instead of Image (#4218) 2020-04-28 23:23:39 +08:00
channels.ts MM-15758 Update dependencies including Fastlane (#4272) 2020-05-18 11:24:47 -07:00
emojis.test.js [MM-23520] Port mattermost-redux (#4088) 2020-03-31 11:09:26 -07:00
emojis.ts MM-24115 Use Native + BuiltIn emojis instead of systemEmojis (#4274) 2020-05-13 18:23:47 -04:00
errors.test.js [MM-23520] Port mattermost-redux (#4088) 2020-03-31 11:09:26 -07:00
errors.ts [MM-23520] Port mattermost-redux (#4088) 2020-03-31 11:09:26 -07:00
files.test.js MM-24285 Use FastImage instead of Image (#4218) 2020-04-28 23:23:39 +08:00
files.ts MM-15758 Update dependencies including Fastlane (#4272) 2020-05-18 11:24:47 -07:00
general.test.js [MM-23520] Port mattermost-redux (#4088) 2020-03-31 11:09:26 -07:00
general.ts MM-15758 Update dependencies including Fastlane (#4272) 2020-05-18 11:24:47 -07:00
gifs.ts MM-15758 Update dependencies including Fastlane (#4272) 2020-05-18 11:24:47 -07:00
helpers.test.js MM-24285 Use FastImage instead of Image (#4218) 2020-04-28 23:23:39 +08:00
helpers.ts MM-15758 Update dependencies including Fastlane (#4272) 2020-05-18 11:24:47 -07:00
index.ts [MM-23158] Group Mentions & Invites - Display group mentions in suggestions list in the main channel textbox (#4118) 2020-07-08 07:31:58 -04:00
integrations.test.js [MM-23520] Port mattermost-redux (#4088) 2020-03-31 11:09:26 -07:00
integrations.ts [MM-23520] Port mattermost-redux (#4088) 2020-03-31 11:09:26 -07:00
jobs.test.js [MM-23520] Port mattermost-redux (#4088) 2020-03-31 11:09:26 -07:00
jobs.ts [MM-23520] Port mattermost-redux (#4088) 2020-03-31 11:09:26 -07:00
posts.test.js MM-22155 ESLint configuration updates part 1 (#4311) 2020-05-20 08:27:27 -07:00
posts.ts [MM-23761] [MM-25766] Add "More Messages" button (#4526) 2020-07-09 13:30:30 -07:00
preferences.test.js MM-24285 Use FastImage instead of Image (#4218) 2020-04-28 23:23:39 +08:00
preferences.ts [MM-23698] [MM-19559] Remove redux-offline and updated redux-persist (#4120) 2020-04-08 13:44:54 -07:00
roles.test.js [MM-23520] Port mattermost-redux (#4088) 2020-03-31 11:09:26 -07:00
roles.ts MM-15758 Update dependencies including Fastlane (#4272) 2020-05-18 11:24:47 -07:00
schemes.test.js [MM-23520] Port mattermost-redux (#4088) 2020-03-31 11:09:26 -07:00
schemes.ts MM-15758 Update dependencies including Fastlane (#4272) 2020-05-18 11:24:47 -07:00
search.test.js [MM-23520] Port mattermost-redux (#4088) 2020-03-31 11:09:26 -07:00
search.ts [MM-23520] Port mattermost-redux (#4088) 2020-03-31 11:09:26 -07:00
teams.test.js MM-24895 fetch roles if needed and add team member to the store when joining a new team (#4330) 2020-05-26 09:05:43 -04:00
teams.ts [MM-24501] Load all (including joinable) teams when resetting app state (#4362) 2020-05-28 13:15:30 -03:00
timezone.ts [MM-23520] Port mattermost-redux (#4088) 2020-03-31 11:09:26 -07:00
users.test.js MM-15758 Update dependencies including Fastlane (#4272) 2020-05-18 11:24:47 -07:00
users.ts Using new getKnownUsers api to cleanup the users on leave channel (#4220) 2020-05-11 13:19:38 -03:00