mattermost-mobile/app/screens
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
..
about
add_reaction
channel [MM-23761] [MM-25766] Add "More Messages" button (#4526) 2020-07-09 13:30:30 -07:00
channel_add_members
channel_info
channel_members
client_upgrade
code
create_channel MM-26490 Dismiss keyboard when closing more dms / channels / create channel (#4538) 2020-07-07 17:37:52 -04:00
edit_channel
edit_post MM-21368 Notify user when editing message that's too long (#4371) 2020-06-10 13:01:40 -03:00
edit_profile MM-25694 Disallow profile picture update is set by LDAP (#4377) 2020-06-02 12:04:28 -04:00
error_teams_list
expanded_announcement_banner
flagged_posts
forgot_password
image_preview
interactive_dialog
login MM-26667 Set EMM username as the initial loginId (#4519) 2020-07-02 14:27:19 -04:00
login_options Fix SSO and clear cookies (#4422) 2020-06-15 14:00:13 -04:00
long_post [MM-24068] Animate top bar height/padding (#4370) 2020-06-01 10:03:58 -07:00
mfa
more_channels MM-26490 Dismiss keyboard when closing more dms / channels / create channel (#4538) 2020-07-07 17:37:52 -04:00
more_dms MM-26490 Dismiss keyboard when closing more dms / channels / create channel (#4538) 2020-07-07 17:37:52 -04:00
notification
options_modal
permalink [MM-24068] Animate top bar height/padding (#4370) 2020-06-01 10:03:58 -07:00
pinned_posts
post_options MM-26638 MM-26656 await when dismissing post options modal (#4518) 2020-07-02 11:59:14 -04:00
reaction_list MM-25956 Use new mobile modal style on Other User Profile (#4507) 2020-07-09 08:34:42 +09:00
recent_mentions
search MM-26699 Track open modals (#4539) 2020-07-08 10:43:20 -07:00
select_server MM-25831 Fix timing issue with cancelPing (#4389) 2020-06-08 14:16:44 -03:00
select_team Fix unhandled error when logging out from the select team screen (#4423) 2020-06-17 14:37:46 -07:00
selector_screen
settings Update settings.js (#4517) 2020-07-06 10:49:14 -07:00
sso MM-25967 Disable Shared Process Pool in WebView (#4511) 2020-07-01 16:06:59 -04:00
table
table_image MM-15719 Use metadata only to render post additional content (#4386) 2020-06-29 11:28:07 -04:00
terms_of_service MM-25946 prompt sys admins if they are running server versions below 5.19 (#4488) 2020-06-26 15:58:37 -04:00
text_preview
thread
user_profile MM-25956 Use new mobile modal style on Other User Profile (#4507) 2020-07-09 08:34:42 +09:00
index.js