mattermost-mobile/app/constants
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_links.js MM-19759 - Added TOS and Privacy Policy default links in About… (#3491) 2019-10-30 14:11:14 -04:00
attachment.js [MM-10813] Design update for Post attachments (#3511) 2019-11-15 22:41:09 -05:00
autocomplete.js Feature/search after before on (#2028) 2018-08-28 18:01:11 -04:00
custom_prop_types.js add eslint-plugin-header, and --fix all (#1726) 2018-06-19 19:14:50 -04:00
deep_linking.js Deep linking based on channel url; Fix merge conflicts (#2542) 2019-02-14 13:29:57 -05:00
device.js MM-15758 Update dependencies including Fastlane (#4272) 2020-05-18 11:24:47 -07:00
emoji.js MM-17838 Wrap reactions when they exceed screen size (#3144) 2019-11-18 22:10:38 -03:00
image.js MM-24285 Use FastImage instead of Image (#4218) 2020-04-28 23:23:39 +08:00
index.js MM-24285 Use FastImage instead of Image (#4218) 2020-04-28 23:23:39 +08:00
list.js [MM-18362] Sidebar improvements (#3223) 2019-09-16 13:17:48 -03:00
navigation.js MM-22401 Refactor Post Draft (#4122) 2020-05-06 06:30:51 -04:00
post_draft.js MM-21368 Notify user when editing message that's too long (#4371) 2020-06-10 13:01:40 -03:00
reaction_picker.js MM-14038 Access recent reactions from the long press menu (#4058) 2020-04-01 12:56:49 -07:00
screen.js [MM-14017] Fix whitespace between input box and post list on iOS (#2580) 2019-02-19 21:20:16 -08:00
types.js MM-23230 Batch post actions and fine tune postlint (#4042) 2020-03-18 16:59:45 -03:00
view.js [MM-23761] [MM-25766] Add "More Messages" button (#4526) 2020-07-09 13:30:30 -07:00
websocket.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