* MM-24328: Show Press again to exit toast when back button on Channel screeen is pressed.
* Fix feedbacks.
* Handle back press only for the Channel screen.
* MM-24328: Add a back press handler to share activity.
* Update the toast message as Press back again to exit.
* Don't retry nor use response message on 401
* Explicitly call contentHandler on retry exhaustion
* Handle all non 200 responses for id_loaded notifications
Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
* MM-22181 Backoff retries for ID-loaded push notification messages
Fibonacci backoffs. 6 attempts in ~20 seconds, not including response latency for each failure.
0 seconds to attempt 1 (original try)
1 seconds to attempt 2
2 seconds to attempt 3
3 seconds to attempt 4
5 seconds to attempt 5
8 seconds to attempt 6
* PR review: Reset re-request counter when server call succeeds
* PR Review: Localize scope of recursion counter
This handles scenario where multiple notification requests are being made at the same time for multiple messages. Counter will be isolated for each fetch request.
* PR Review: Remove unnecessary class variable
* Trigger Build
Co-authored-by: Miguel Alatzar <this.migbot@gmail.com>
Users are hitting legitimate exceptions when using the Android Share extension.
However, in some cases where the channel ID isn't available from the user's actions that triggered the exception, the Sentry error reporting message payload can't be successfully formed and it bombs.
This commit allows Sentry's payload to be successfully formed, so that we can now see the actual underlying exception (with its associated user data) in Sentry. The single, catch-all `NoSuchKeyException` should now stop, and be replaced by a few new Sentry exception reports to analyze and tackle individually.
* Upgrade Navigation library
* Feedback review on Navigation Library
* Fix select server background color
* Fix iPhone 11 and 11 Pro Max navbar height
* Fix background color on Select Server
* Upgrade nav lib to 6.1.0
* Apply patch to nav lib
* Upgrade RNN to 6.1.1
* Reacting to shift-enter events on iOS
* moving keyEvent logic to handleHardwareEnterPress
* configured android to work with keyEvents
* using dispatchKeyEvent instead of onKeyUp
* using react-native-hw-keyboard-event
* cleanup
* updated package name
* update package name
* using react-native-hw-keyboard-event v0.0.2
* reverted cocoapods version change
* Documentation
* fix detection of Shift-Enter on android
* simplify dispatchKeyEvent()
* fix for stacked hardware keyboard events
* Update android/app/src/main/java/com/mattermost/rnbeta/MainActivity.java
Co-Authored-By: Miguel Alatzar <migbot@users.noreply.github.com>
* simplify dispatchKeyEvent
* removed yarn.lock
* using react-native-hw-keyboard-event v0.0.4
* Using ACTION_UP instead of ACTION_DOWN
Co-authored-by: Miguel Alatzar <migbot@users.noreply.github.com>
* Don't use localPath when it's the share extension cache dir
* Move android pasted images to cache image folder
* Use Files.move instead of FileInput / FileOutput stream
* Remove commented code and not needed imports
* [MM-16232] Android: Fetch notification in notificationReceiptDelivery (#3552)
* Fetch notification in notificationReceiptDelivery
* Fix patch
* Fix patch take 2
* No need to send user_id to ack endpoint
* Just putString in mNotificationProps
* Fix patch take 3
* Revert react-native-notifications patch
* Update patch and fix rejections
* Remove trailing newline in patch
* Move PushNotification changes to end of patch
* npm cache test
* Revert "npm cache test"
This reverts commit d31030aaeeb010c1c3d22a5f6196191eeb849add.
* Created patch after upgrading node
* Created patch after upgrading node take 2
* Remove androidx changes from patch
* Patch packages then jetify
* Cache node_modules without patches
* Remove adding of default message (#3557)
* [MM-16232] iOS: Fetch id-loaded push notification from server (#3556)
* Fetch notification from server
* Parse fetched notification response
* Fix id-loaded notifications for DM/GM's
* audit fix
* Only add keys if they exist
* Throw exception if response code is not 200
* [MM-16593] [MM-17175] [MM-17164] [MM-17189] [MM-17181] Android - Upgrade to RN 0.60 (#3145)
* Upgrade to react-native 0.60
* Use @sentry/react-native
* Manually link @sentry/react-native
* Address review comments
* Jetify after install
* Call jetify from node_modules
* Run npm install react-native-fast-image --save
* Link react-native-fast-image for Android
* Link react-native-fast-image to iOS Pod
* Replace Image with FastImage in emoji.js and remove redundant caching
* Remove duplicate sentry gradle
* Feedback review
* Remove FastImage and Sentry from the Podfile
* Refactor custom push notification code
* Use react-native-notifications 2.0.6 and patch for scheduled notifs
* Fix patch
* iOS changes
* Fix delete
* Fix setting of badge number on Android
* Undo Reflect removal
* Undo removal of didReceiveRemoteNotification
* Use min importance for push notifs received while app is active
* Correctly set badge number after push notificaiton reply
* Fix tests
* Localize reply action text
* Add getDeliveredNotifications
* Fix identifier check and failing test
* Fix local push notif test for Android > 9
* Show image paste menu
* Get pasted image
* Add more info for file
* Add custom text input and add extension
* Dismiss contextual menu after paste image
* Group image info together
* Add max file check
* Fix max file size text
* Add PropTypes
* Add support for gif and tiff
* add onchange null check
* Use onPaste event
* Move get image info logic
* Clean up listener when no observer
* Add android upload
* Copy file from google docs
* Clean up file after upload
* Prevent text pasted in textbox if it's content uri
* Rename paste file thread
* Move on paste listener logic
* Remove the redundant data in ios
* Get realpath of item
* Clean up
* Only download for image
* Rename to custom text input
* Update RNPasteableEditTextOnPasteListener.java
* Handle for download image failed
* Fix eslint
* Fix test
* Allow multiple images to be pasted
* Remove additional null check
* Add managed control for Android
* Disable only copy, cut and paste
* Accept image in Android edit text
* Add comment for custom text input
* Do not upload when more than max file
* Stop uplaod when exceed file size
* Fix crash when clip data is null
* Return error to JS
* Move download file logic
* Remove console
* Add some tests
* Add test for handleUploadImages
* Add test for file_upload_item
* Use ImageCacheManager to cache remote images
* Fix crashes from one note
* Remove commented code
* Update test
* Animate backdrop opacity in slide up panel
* Set delayLongPress to 75ms for post
* Add haptic feedback on slide up of post options
* Ease in slide up animation
* Add haptic feedback to android
* reduce long press delay for post options menu
* helper function for haptic feedback
* Add haptic feedback when opening post options menu
* Patch haptic feedback RN module on Android
* Fix tests
* Move hapticFeedback call to SlideUpPanel
* Decrease long press time for reaction