mattermost-mobile/app/actions/views
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
..
announcement.js add eslint-plugin-header, and --fix all (#1726) 2018-06-19 19:14:50 -04:00
channel.js [MM-23761] [MM-25766] Add "More Messages" button (#4526) 2020-07-09 13:30:30 -07:00
channel.test.js Fix infinite skeleton in different use cases and do not scroll to messages already seen (#4304) 2020-05-19 18:54:34 -04:00
channel_add_members.js [MM-23520] Port mattermost-redux (#4088) 2020-03-31 11:09:26 -07:00
channel_members.js [MM-23520] Port mattermost-redux (#4088) 2020-03-31 11:09:26 -07:00
client_upgrade.js add eslint-plugin-header, and --fix all (#1726) 2018-06-19 19:14:50 -04:00
command.js [MM-23520] Port mattermost-redux (#4088) 2020-03-31 11:09:26 -07:00
create_channel.js [MM-23520] Port mattermost-redux (#4088) 2020-03-31 11:09:26 -07:00
create_channel.test.js Generate random channel URL name from display names that don't clean into a usable name (#2679) 2019-03-28 13:34:56 -07:00
edit_profile.js [MM-23520] Port mattermost-redux (#4088) 2020-03-31 11:09:26 -07:00
emoji.js Various fixes: (#4474) 2020-06-23 16:39:49 -07:00
file_upload.js [MM-23520] Port mattermost-redux (#4088) 2020-03-31 11:09:26 -07:00
login.js MM-15758 Update dependencies including Fastlane (#4272) 2020-05-18 11:24:47 -07:00
login.test.js MM-15758 Update dependencies including Fastlane (#4272) 2020-05-18 11:24:47 -07:00
more_dms.js [MM-23520] Port mattermost-redux (#4088) 2020-03-31 11:09:26 -07:00
post.js Fix infinite skeleton in different use cases and do not scroll to messages already seen (#4304) 2020-05-19 18:54:34 -04:00
post.test.js MM-15758 Update dependencies including Fastlane (#4272) 2020-05-18 11:24:47 -07:00
root.js Ensure previous state is cleared when logout (#4390) 2020-06-08 13:43:53 -04:00
root.test.js Deep linking based on channel url; Fix merge conflicts (#2542) 2019-02-14 13:29:57 -05:00
search.js Add custom rule to prevent passing getState into dispatch (#4010) 2020-03-06 17:07:20 -05:00
select_server.js [MM-23520] Port mattermost-redux (#4088) 2020-03-31 11:09:26 -07:00
select_server.test.js [MM-23520] Port mattermost-redux (#4088) 2020-03-31 11:09:26 -07:00
select_team.js MM-25695 Select channel when switching teams if available (#4375) 2020-06-03 08:53:32 -04:00
session.js Do not schedule session expiry notification for 5.24+ (#4291) 2020-05-19 12:15:45 -04:00
thread.js Port WebSocket from mm-redux and batch actions (#4060) 2020-03-26 21:23:50 -03:00
thread.test.js Port WebSocket from mm-redux and batch actions (#4060) 2020-03-26 21:23:50 -03:00
typing.js Port WebSocket from mm-redux and batch actions (#4060) 2020-03-26 21:23:50 -03:00
user.js Fix infinite skeleton in different use cases and do not scroll to messages already seen (#4304) 2020-05-19 18:54:34 -04:00
user.test.js [MM-23520] Port mattermost-redux (#4088) 2020-03-31 11:09:26 -07:00