Elias Nahum
016a725732
MM-28105 do not crash when in-app notification shows ( #4915 )
...
* MM-28105 do not crash when in-app notification shows
* Use index.tsx to register the notification screen
* Fix notification e2e and some import cleanup
* Update iOS notification json
* e2e: Show the add reaction screen before receiving a notification
* Update snapshots
* Patch react-native-notifications to prevent iOS crash when opening
* Apply TM4J id
Co-authored-by: Joseph Baylon <joseph.baylon@mattermost.com>
2020-10-22 14:34:49 -03:00
Elias Nahum
102445db66
Fix iOS AppSetting timeout ( #4801 )
2020-09-10 16:50:44 -03:00
Elias Nahum
bab1cc0601
AppConfig setting to control the default request timeout ( #4797 )
...
* AppConfig setting to control the default request timeout
* Set default timeout to 10s
2020-09-10 15:12:00 -03:00
Elias Nahum
bba139726d
Cleanup fetch error & add details to sso ( #4642 )
2020-08-04 12:16:53 -04:00
Elias Nahum
baca7bcf87
Fix the display the error message if ssoLogin action fails ( #4609 )
...
* Fix the display the error message if ssoLogin action fails
* Fix typo
* Remove token parameter
2020-07-23 16:42:43 -04:00
Shota Gvinepadze
5465133c87
Add analytics to the command autocomplete ( #4597 )
...
* Add analytics to the command autocomplete
* Refactor analytics
* Refactor reset method
2020-07-23 19:57:42 +04:00
Alex Dovenmuehle
5e221252a2
Rename actual_user_id to user_actual_id to be more consistent with the rest of MM telemetry. ( #4520 )
...
Co-authored-by: Alex Dovenmuehle <alex.dovenmuehle@mattermost.com>
2020-07-17 14:32:27 -04:00
Elias Nahum
f79baea68f
MM-26749 Fix race condition when open from PN ( #4556 )
...
* MM-26749 Fix race condition when open from PN
* setStartFromNotification earlier
* Fix Android race condition when closing the app with the back button
2020-07-10 16:24:09 -04:00
Elias Nahum
30cd64b38b
Revert updated dependecies for SSO ( #4499 )
...
* Revert updated dependecies for SSO
* Fix test setup
2020-06-26 21:50:53 -04:00
Elias Nahum
b85766ec31
MM-25931 Handle incoming session expired push notification ( #4417 )
2020-06-17 21:30:19 -04:00
Elias Nahum
023109e250
Fix SSO and clear cookies ( #4422 )
...
* Fix SSO and clear cookies
* Fix unit tests
* Removed unnecessary argument
Co-authored-by: Miguel Alatzar <migbot@users.noreply.github.com>
Co-authored-by: Miguel Alatzar <migbot@users.noreply.github.com>
2020-06-15 14:00:13 -04:00
Miguel Alatzar
67978382e2
Wrap await calls in try/catch ( #4418 )
...
* Wrap await calls in try/catch
* Fix spacing
2020-06-12 13:08:22 -07:00
Elias Nahum
8c4ce94701
MM-25967 await until cookies are cleared ( #4411 )
2020-06-11 14:19:20 -04:00
Elias Nahum
195011d678
Ensure previous state is cleared when logout ( #4390 )
2020-06-08 13:43:53 -04:00
Amit Uttam
3d1a647263
[MM-24501] Load all (including joinable) teams when resetting app state ( #4362 )
...
* MM-24501 Load all (joinable) teams when resetting app state
The subsequent `loadMe` only fetches a user's already-joined teams, which doesn't populate `state.entities.teams.teams` with the entire set of teams available, including potentially joinable teams.
Fixes https://github.com/mattermost/mattermost-mobile/issues/4209
* Add names to batched team action groups
2020-05-28 13:15:30 -03:00
Elias Nahum
c04c1f26f7
Do not schedule session expiry notification for 5.24+ ( #4291 )
2020-05-19 12:15:45 -04:00
Elias Nahum
d3a6e166ad
MM-15758 Update dependencies including Fastlane ( #4272 )
...
* Update dependencies including Fastlane and disable Flipper on iOS
* Remove EventEmitter for previous doc-viewer
* Fix android crash when setting more channels buttons
* Downgrade fuse.js
* Upgrade deps to latest
* Update Podfile.lock
* Downgrade RNN to 6.4.0
* QA Review #2
* Upgrade fuse.js to 6.0.0
2020-05-18 11:24:47 -07:00
Elias Nahum
36e55c95a2
MM-23570 Migrate from Segment to Rudder ( #4293 )
...
* Replace Segment with Rudder (ios not working)
* Update @assets reference and fix tests
2020-05-13 16:54:07 -04:00
Elias Nahum
597e03a6bc
MM-24852 ensure only one listener for in-app notification is registered ( #4267 )
2020-05-05 18:56:58 -04:00
Elias Nahum
9af108026e
MM-24285 Use FastImage instead of Image ( #4218 )
...
* Enable ESLint no-unused-vars
* Use FastImage instead of Image
* Update fast-image patch to support multiple cookies
* Fix ESLint errors
* Have jest run timers for post_textbox tests
* Feedback review
* Update snapshots
2020-04-28 23:23:39 +08:00
Elias Nahum
f94c09d54e
MM-24451 Set prev app version to current on logout/reset cache ( #4225 )
...
* MM-24451 Set prev app version to current on logout/reset cache
* Fix unit tests for master
2020-04-24 11:07:08 -07:00
Miguel Alatzar
135dc8c9bd
[MM-24426] [MM-24451] Set previous app version in redux store ( #4197 )
...
* Set previous app version in redux store
* Handle setting previousVersion on login and clearing data
* Set previous version on logout instead
* Remove action arg
2020-04-23 05:42:35 -04:00
Miguel Alatzar
cd8c627dc3
Fix headers when preloading images ( #4165 )
2020-04-16 18:43:51 -07:00
Elias Nahum
fda4948c8c
MM-23848 consolidate store, upgrade mmkv and fix logout ( #4145 )
...
* MM-23848 consolidate store, upgrade mmkv and fix logout
* Feedback review
* Add store.ts to modulesPath
2020-04-16 09:02:47 -04:00
Miguel Alatzar
7afa9aed01
[MM-23698] [MM-19559] Remove redux-offline and updated redux-persist ( #4120 )
...
* Remove redux-offline and configure redux-persist
* Fix typo
* Fix configure store
* Upgrade to redux-persist 6.0.0
* Add migration from redux-persist v4 to v6
* Replace AsyncStorage with MMKVStorage to boost storage speed
* Mock RNFastStorage
* Fix reactions test
* Fix clearing the store on logout
* Remove the need for LOGOUT_SUCCESS
* No need to pass persistConfig to middlewares()
* Remove unused imports
* Export connection
Accidentally removed this export.
* Add batch action name
Co-Authored-By: Elias Nahum <nahumhbl@gmail.com>
* Add batch action name
Co-Authored-By: Elias Nahum <nahumhbl@gmail.com>
* Add batch action name
Co-Authored-By: Elias Nahum <nahumhbl@gmail.com>
* Add batch action name
Co-Authored-By: Elias Nahum <nahumhbl@gmail.com>
* Fix delete post
* Fix leave channel
Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
2020-04-08 13:44:54 -07:00
Miguel Alatzar
ee4b85edcf
[MM-23520] Port mattermost-redux ( #4088 )
...
* Remove mattermost-redux
* Move mm-redux files into app/redux
* Add @redux path to tsconfig.json
* Fix imports
* Install missing dependencies
* Fix tsc errors
* Fix i18n_utils test
* Fix more imports
* Remove redux websocket
* Fix tests
* Rename @redux
* Apply changes from mattermost-redux PR 1103
* Remove mattermost-redux mention in template
* Add missing imports
* Rename app/redux/ to app/mm-redux/
* Remove test file
* Fix fetching Sidebar GM profiles
Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
2020-03-31 11:09:26 -07:00
Elias Nahum
7bb162b07a
MM-22292 Don't use redux to store username and password ( #4072 )
...
* MM-22292 Don't use redux to store username and password
* Set login and password MFA props
2020-03-26 23:57:58 -03:00
Elias Nahum
10d433cfab
Port WebSocket from mm-redux and batch actions ( #4060 )
...
* Port WebSocket from mm-redux and batch actions
* Update mm-redux and fix tests
* Change action name
* Naming batch actions
* Fix unit tests
* Dispatch connection change only if its different
* Remove comment
* Add Lint to TypeScript and fix linting errors
* Add WebSocket Unit Tests
* Revert from unwanted RN 0.62
2020-03-26 21:23:50 -03:00
Amit Uttam
956b65556c
MM-23162 Remove unnecessary dimension and orientation dispatches ( #4046 )
...
`setDeviceOrientation` and `setDeviceDimensions` used to get called on any navigation change (e.g. modal launches) and triggered multiple needless dispatches.
2020-03-19 13:50:51 -03:00
Elias Nahum
3e7096de3f
Flush store on logout ( #4002 )
2020-03-04 09:18:20 -07:00
Elias Nahum
c9d78766d4
MM-22752/MM-22686 global timeout and team switch ( #3978 )
...
* MM-22686 decrease request timeout to 5s
* MM-22752 Fix switching teams with and without connction
2020-03-01 09:25:53 -03:00
Miguel Alatzar
55ebf4f5e4
[MM-20950] Don't reset the navigation root when clearing data ( #3929 )
...
* No need to resetToChannel on clearing data
* Don't use componentWillReceiveProps
* Dismiss all modals on iOS too
* Use centerChannelBg when channel as root
* Fix resetToChannel test
* Fix removal of loadChannels call when rebasing with master
* Add new line
* Address PR review comments
2020-02-27 17:15:45 -03:00
Elias Nahum
0504a962a1
MM-22379 & MM-22598 Boost perf by using FastImage cache in favor of ImageCacheManager ( #3971 )
...
* MM-22379 & MM-22598 Boost perf by using FastImage cache in favor of ImageCacheManager
* Code review
2020-02-27 16:29:51 -03:00
Miguel Alatzar
476fc19431
[MM-22159] Import from semver/preload ( #3874 )
...
* Import from semver/preload
* Add unit tests
2020-01-30 09:33:54 -03:00
Elias Nahum
7c09334dc4
Deps update ( #3806 )
...
* Dependecy updates
* Update dependencies
2020-01-20 13:20:03 -03:00
Miguel Alatzar
24820bd34d
[MM-21865] Dispatch loadConfigAndLicense on successful login ( #3819 )
...
* Dispatch loadConfigAndLicense on successful login
* Emit server version changed event
* Make linter happy
2020-01-20 08:25:42 -07:00
Miguel Alatzar
c988a3ea80
[MM-21270] Handle lower case headers ( #3790 )
...
* Handle lower case headers
* Change var name
2020-01-09 16:19:17 +08:00
Jesús Espino
23a79b9da2
[MM-21270] Fixing team join without the invite id ( #3710 )
...
* Fixing team join without the invite id
* Fixing tests
* Adding tests to verify proper behavior calling the correct function based on the server version
* Extract server version from headers
* Make linter happy
* Update mattermost-redux
* Update mattermost-redux
2019-12-16 19:04:42 -07:00
Elias Nahum
4cc375dcb0
Fix SSO login on iOS ( #3657 )
2019-12-03 13:08:30 -03:00
Elias Nahum
59c8cbed55
MM-20780 MM-20782 Clear cookies on logout ( #3645 )
2019-12-03 08:33:09 +08:00
Elias Nahum
8d37e3d22f
MM-20789 Enforce SECURE_SOFTWARE ( #3637 )
2019-12-02 08:23:27 -07:00
Miguel Alatzar
1efb01deda
[MM-16593] Upgrade to RN 0.61.2 ( #3455 )
...
* [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
* [MM-17785] iOS - Upgrade to RN 0.60 (#3153 )
* 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
* Get app building for iOS
* Revert react-native-image-picker upgrade
* Minor version upgrade of react-native-image-picker
* [MM-17142] Convert all string refs to callbacks (#3217 )
* Replace string refs
* Fix tests
* Don't use inline functions
* Fix mattermost-redux reversion from master merge
* [MM-18336] Upload Sentry debug symbols only when SENTRY_ENABLED is true (#3227 )
* Upgrade @sentry/react-native
* Run Sentry gradle tasks only when enabled
* Upgrade @sentry/react-native and remove extra Sentry build phase
* [MM-17144] Use Hermes (#3226 )
* Replace string refs
* Fix tests
* Don't use inline functions
* Fix mattermost-redux reversion from master merge
* Use Hermes
* bundleCommand ram-bundle no longer needed
* Require harmony-reflect only for Android
* Fix failing test
* Path react-native's splitLayoutProps (#3337 )
* [MM-18867] [MM-17186] [MM-18866] [MM-19447] [MM-18967] Upgrade to RN 0.61.2 (#3423 )
* Upgrade to RN 0.61.2
* Update rn-fetch-blob commit hash
* Update react-native-keyboard-tracking-view commit hash
* Use react-native-youtube with AVPlayer fix
* Fix jest mocks
* Use updated document picker API
* Remove unnecessary linking
* Revert "MM-17759 Add code highlighting (#3072 )"
This reverts commit 26b999e885 .
* Fix share extension
* Revert "Revert "MM-17759 Add code highlighting (#3072 )""
This reverts commit 52aca776b12dee3abe8646d0c90480f8528e86c1.
* Address PR reviews
* Rename patch to match version
* Update react-native-youtube patch
* Update dependencies
* Fix RNDocViewer reference
* Update tests and revert to redux-persist 4.10.2
* Revert "Revert "Revert "MM-17759 Add code highlighting (#3072 )"""
This reverts commit 5ef383be2619b1be6167c23f128ecb4b4ad25df9.
* Android fixes after dep upgrades
* Use fresco 2.0.0
* Use mattermost forks
* Use React-Core in Mattermost.scheme instead of react
* Remove packager (#3452 )
* Remove Pods from source control
* Fix unit tests
* Add new line before entering the keystore in gradle.properties
* set ios as working directory for cocoapods
* Cache cocoapods on circleCI builds
* set ios as working dir
* fix cocoapods cache key
* Unify fastlane and npm dependencies command
* Use package-lock.json checksum for npm cache
* Fix package.json and use the checksum as the cache key
* Fix package.json and use the checksum as the cache key
* changes to circleci.yaml fastlane and removing pods from git
* Fix Mattermost.xcodeproj
* Update coocoapods to 1.7.5 and fix xcode header search paths
* Update package-lock.json
* Remove unused tooltip component
* Fix incorrect ref
* Disable Hermes (#3460 )
* Revert "Remove packager (#3452 )"
This reverts commit b2a79e184b3242124dfdb91ae095f6ce3f4eb986.
* Disable Hermes :'(
* Update preloaded modules
* Fix packages moduleNames and modulePaths, update snapshots and update mm-redux (ts version)
* remove document picker from modulePaths
* Fix package-lock.json
* Add eslint disable rules
2019-10-28 15:04:24 -07:00
Elias Nahum
64d22fd0f2
MM-18313 Fix update timezone automatically ( #3462 )
...
* MM-18313 Fix update timezone automatically
* add unit tests
2019-10-25 08:01:32 -07:00
Miguel Alatzar
2cfb6f1136
[MM-18656] Update third party libraries to use WKWebView over UIWebView ( #3353 )
...
* Use updated react-native-keyboard-tracking-view
* Use updated react-native-device-info
* Use updated react-native-device-info and add new pod dependency
2019-10-02 11:02:06 -04:00
Miguel Alatzar
459801d10b
[MM-17560] Await dismissAllModals and popToRoot prior to calling showSearchModal ( #3298 )
...
* Patch react-native-navigation
* Make navigation actions regular functions
* Fix unhandled promise rejection warning
* Missing semicolons
* Mock navigation actions
* Add unit tests for navigation actions
* Place all patches in patches directory
* Fix channel_info snapshot test
2019-09-25 15:23:45 -07:00
Miguel Alatzar
0b044b62a5
[MM-18779] Reset moment local on logout ( #3310 )
...
* Reset moment local on logout
* Update app/selectors/i18n.js
Co-Authored-By: Elias Nahum <nahumhbl@gmail.com>
2019-09-25 16:02:58 +08:00
Miguel Alatzar
faf97f9945
Ensure onAppStateChange runs only after GlobalEventHandler is configured ( #3268 )
2019-09-18 09:59:52 -07:00
Harrison Healey
4bb94195f1
MM-18465 Add proper flags when opening settings ( #3242 )
...
* MM-18465 Add proper flags when opening settings
* Fix undefined setPerformingAuthentication Function in emm_provider.
2019-09-11 23:57:07 -04:00
Harrison Healey
91a7cb499c
MM-17589 Update "passcode required" help text ( #3137 )
...
* MM-17589 Update passcode required help text in share extension
* MM-17589 Update passcode required help text in app
2019-08-23 12:12:22 -04:00
Elias Nahum
a6a299352e
MM-18024 MM-18025 Fix race condition when push notification opens the app and credentials are not set ( #3168 )
2019-08-23 09:37:48 -04:00