Commit graph

532 commits

Author SHA1 Message Date
Mattermost Build
4e64412e7f
Bump app build number to 307 (#4504)
Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
2020-06-26 22:05:19 -04:00
Mattermost Build
b7ee48a6f8
Automated cherry pick of #4499 (#4502)
* Revert updated dependecies for SSO

* Fix test setup

Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
2020-06-26 22:05:03 -04:00
Mattermost Build
2e04d197b9
Automated cherry pick of #4494 (#4497)
* Bump app version number to 1.32.2

* Bump app build number to 306

Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
2020-06-26 16:51:26 -04:00
Mattermost Build
3199e25af1
Automated cherry pick of #4433 (#4483)
* 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: Miguel Alatzar <this.migbot@gmail.com>
Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
2020-06-25 12:12:53 -07:00
Mattermost Build
e44c4c36d6
Bump build number to 305 (#4479)
Co-authored-by: Miguel Alatzar <this.migbot@gmail.com>
2020-06-23 19:38:29 -07:00
Mattermost Build
017090bb08
Bump app build number to 304 (#4469)
Co-authored-by: Miguel Alatzar <this.migbot@gmail.com>
2020-06-22 16:03:48 -07:00
Mattermost Build
22cb961de3
Various fixes: (#4467)
* Dispatch REHYDRATED if already hydrated after getStoredState call
* Empty/null prev version is valid
* Update iOS target to 11.0

Co-authored-by: Miguel Alatzar <this.migbot@gmail.com>
2020-06-22 15:31:35 -07:00
Mattermost Build
f64881c194
Bump build number (#4460)
Co-authored-by: Miguel Alatzar <this.migbot@gmail.com>
2020-06-19 16:59:55 -07:00
Elias Nahum
b316ad5a20
MM-25931 Handle incoming session expired push notification (#4417) 2020-06-17 21:32:08 -04:00
Mattermost Build
03ecb984bf
MM-25955 Refactor backoff/retry logic for failed id-loaded notifications (#4446)
Triggered per [this conversation](https://github.com/mattermost/mattermost-mobile/pull/4302#discussion_r426426887)

Raised question https://stackoverflow.com/questions/62293185/recursive-function-with-delay-in-between-calls?noredirect=1#comment110172449_62293185 which resolved the recursion.

Co-authored-by: Amit Uttam <changingrainbows@gmail.com>
2020-06-17 21:26:43 -04:00
Mattermost Build
b5ee7c8908
Bump app build number to 302 (#4426)
Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
2020-06-15 14:21:56 -04:00
Mattermost Build
aab0814b7f
Automated cherry pick of #4422 (#4424)
* Fix SSO and clear cookies

* Fix unit tests

* Removed unnecessary argument

Co-authored-by: Miguel Alatzar <migbot@users.noreply.github.com>

Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
Co-authored-by: Miguel Alatzar <migbot@users.noreply.github.com>
2020-06-15 14:06:53 -04:00
Miguel Alatzar
bf840785fb Bump app build number to 301 (#4420) 2020-06-12 13:22:38 -07:00
Mattermost Build
b5c3e95a4b
Bump app build number to 300 (#4415)
Co-authored-by: Miguel Alatzar <this.migbot@gmail.com>
2020-06-11 13:45:41 -07:00
Mattermost Build
2b8bba7c24
Bump app build number to 299 (#4405)
Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
2020-06-09 16:11:59 -04:00
Mattermost Build
9b9373e27b
MM-25929 Decouple id-loaded retries from regular notification run (#4403)
Bug found in #4302 that delayed delivery/receipt of normal (non id-loaded) iOS push notifications. Response handling was happening within the guard block for id-loaded messages.

Co-authored-by: Amit Uttam <changingrainbows@gmail.com>
2020-06-09 16:15:25 -03:00
Mattermost Build
4ebcba6069
Bump app build number to 298 (#4383)
Co-authored-by: Miguel Alatzar <this.migbot@gmail.com>
2020-06-03 10:36:53 -07:00
Mattermost Build
72b95fa265
Bump app build number to 297 (#4367)
Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
2020-05-28 14:03:11 -04:00
Mattermost Build
d19fc71ad4
Bump app build number to 296 (#4364)
Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
2020-05-27 15:45:17 -04:00
Mattermost Build
cabce2a808
Bump app build number to 295 (#4336)
Co-authored-by: Miguel Alatzar <this.migbot@gmail.com>
2020-05-22 10:29:29 -07:00
Mattermost Build
679a897848
Bump app build number to 294 (#4321)
Co-authored-by: Miguel Alatzar <this.migbot@gmail.com>
2020-05-21 09:38:02 -07:00
Mattermost Build
b5fd0284e8
Bump app version number to 1.32.0 (#4319)
Co-authored-by: Miguel Alatzar <this.migbot@gmail.com>
2020-05-21 09:11:11 -07:00
Mattermost Build
7cf4084fe5
Automated cherry pick of #4305 (#4309)
* Fixes Android Share Extension

* Revert changes to share extension navigation

Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
2020-05-20 08:05:29 -04:00
Amit Uttam
ea0f8ab5f0
MM-22181 Backoff retries for ID-loaded push notification messages (#4302)
* 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>
2020-05-19 10:48:55 -07: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
Amit Uttam
1f59cbfa28
Bump app build number to 293 (#4297) 2020-05-13 19:37:28 -03: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
Amit Uttam
79c09d4ac0
Bump app build number to 292 (#4290) 2020-05-12 09:43:41 -03:00
Miguel Alatzar
c4cdfa61db
Bump app build number to 291 (#4255) 2020-04-30 12:18:28 -07:00
Miguel Alatzar
1316bee403
Bump app build number to 290 (#4247) 2020-04-29 12:04:10 -07: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
Miguel Alatzar
8226b4730c
Bump app build number to 289 (#4242) 2020-04-27 15:35:13 -07:00
Miguel Alatzar
9f92caa434
Add find_replace_string for MMKVStorage (#4240) 2020-04-27 15:29:51 -07:00
Amit Uttam
35bb4b6b28
[MM-24463] Run message retention cleanup off of pre-existing state (#4222)
* MM-24463 Run message retention cleanup off of pre-existing state

Instead of a reconstructed "zero" state.

Only posts in channels, searched posts and flag posts are recalculated (as per data retention policy, if applicable). The rest of state is cloned from existing state.

* Mark hydrationComplete only if _persist state is undefined

Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
2020-04-27 13:27:21 -03:00
Amit Uttam
520ddb37ce
Bump app version number to 1.31.0 (#4234) 2020-04-27 11:31:53 -03:00
Amit Uttam
feb370f4c7
Bump app build number to 288 (#4232) 2020-04-27 11:16:07 -03:00
Miguel Alatzar
1586b0fb6e
Bump app build number to 287 (#4229) 2020-04-24 11:47:09 -07:00
Elias Nahum
a4e87a0e26
Bump app build number to 286 and version to 1.30.1 (#4221)
* Bump app build number to 286

* Bump app version number to 1.30.1
2020-04-23 13:36:57 -04:00
Elias Nahum
cc4abdde2f
MM-24446 Fix Crash on iOS with EMM enabled (#4203)
* Fix Crash on iOS with EMM enabled

* Fix Android Passcode authentication

* Fix Login screen header when EMM does not allow other servers
2020-04-23 06:03:10 -04:00
Miguel Alatzar
f85e198ba2
Bump app build number to 285 (#4167) 2020-04-16 19:28:28 -07:00
Elias Nahum
c35a34107a
Bump app build number to 284 (#4162) 2020-04-16 16:39:58 -04: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
Elias Nahum
b025ed0f01
Bump app build number to 283 (#4159) 2020-04-16 08:59:52 -04:00
Elias Nahum
aaa571db32
Upgrade to RN 0.62.2 (#4093)
* Upgrade to RN 0.62.0

* Update packager module paths

* Fix Android PasteableInput

* Fix regression on Android share extension credentials needed

* Update android/app/src/main/java/com/mattermost/rnbeta/RNPasteableEditTextOnPasteListener.java

* Reject commit if TSC check fails and Fix small eslint issues automatically

* Use super.getExportedCustomBubblingEventTypeConstants in RNPasteableTextInputManager

* Update to rn 0.62.2

Co-authored-by: Miguel Alatzar <migbot@users.noreply.github.com>
2020-04-14 16:39:51 -04:00
Elias Nahum
795091983c
Bump app build number to 282 (#4154) 2020-04-14 15:56:35 -04:00
Elias Nahum
4f04216c9f
Bump app build number to 281 (#4148) 2020-04-13 19:25:59 -04:00
Miguel Alatzar
b450c4ac9a
Bump app build number to 280 (#4139) 2020-04-09 15:06:41 -07: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
f3f072eb91
Get store data on init (#4127) 2020-04-07 16:56:17 -07:00
Miguel Alatzar
ee21ff8d81
Bump app build number to 279 (#4114) 2020-04-02 11:50:10 -07:00