Commit graph

3161 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
a9e56cb315
Fix SSO login with subpaths (#4496)
Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
2020-06-26 16:50:53 -04:00
Mattermost Build
a968db07f7
Automated cherry pick of #4489 (#4493)
* Avoid throwing when purging

* Update app/store/index.ts

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-26 16:27:15 -04:00
Mattermost Build
07bc7a4c9f
Automated cherry pick of #4488 (#4491)
* MM-25946 prompt sys admins if they are running server versions below 5.19

* Update alert message

* Change alert buttons

Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
2020-06-26 16:14:54 -04:00
Weblate (bot)
8af4ad793b
Translations update from Weblate (#4463)
* Translated using Weblate (Spanish)

Currently translated at 99.8% (616 of 617 strings)

Translation: mattermost/mattermost-mobile_release-1.33
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile_release-1-33/es/

* Translated using Weblate (Chinese (Simplified))

Currently translated at 100.0% (617 of 617 strings)

Translation: mattermost/mattermost-mobile_release-1.33
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile_release-1-33/zh_Hans/

* Translated using Weblate (Russian)

Currently translated at 100.0% (617 of 617 strings)

Translation: mattermost/mattermost-mobile_release-1.33
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile_release-1-33/ru/

Translated using Weblate (Russian)

Currently translated at 100.0% (617 of 617 strings)

Translation: mattermost/mattermost-mobile_release-1.33
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile_release-1-33/ru/

* Translated using Weblate (Turkish)

Currently translated at 100.0% (617 of 617 strings)

Translation: mattermost/mattermost-mobile_release-1.33
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile_release-1-33/tr/

* Translated using Weblate (Romanian)

Currently translated at 100.0% (617 of 617 strings)

Translation: mattermost/mattermost-mobile_release-1.33
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile_release-1-33/ro/

* Translated using Weblate (German)

Currently translated at 99.8% (616 of 617 strings)

Translation: mattermost/mattermost-mobile_release-1.33
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile_release-1-33/de/

* Translated using Weblate (Dutch)

Currently translated at 100.0% (617 of 617 strings)

Translation: mattermost/mattermost-mobile_release-1.33
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile_release-1-33/nl/

* Translated using Weblate (Italian)

Currently translated at 100.0% (617 of 617 strings)

Translation: mattermost/mattermost-mobile_release-1.33
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile_release-1-33/it/

Translated using Weblate (Italian)

Currently translated at 100.0% (617 of 617 strings)

Translation: mattermost/mattermost-mobile_release-1.33
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile_release-1-33/it/

Translated using Weblate (Italian)

Currently translated at 100.0% (617 of 617 strings)

Translation: mattermost/mattermost-mobile_release-1.33
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile_release-1-33/it/

* Added translation using Weblate (Malayalam)

* Translated using Weblate (Chinese (Traditional))

Currently translated at 99.8% (616 of 617 strings)

Translation: mattermost/mattermost-mobile_release-1.33
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile_release-1-33/zh_Hant/

Translated using Weblate (Dutch)

Currently translated at 100.0% (617 of 617 strings)

Translation: mattermost/mattermost-mobile_release-1.33
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile_release-1-33/nl/

Translated using Weblate (French)

Currently translated at 99.8% (616 of 617 strings)

Translation: mattermost/mattermost-mobile_release-1.33
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile_release-1-33/fr/

Translated using Weblate (Italian)

Currently translated at 100.0% (617 of 617 strings)

Translation: mattermost/mattermost-mobile_release-1.33
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile_release-1-33/it/

Translated using Weblate (Chinese (Simplified))

Currently translated at 100.0% (617 of 617 strings)

Translation: mattermost/mattermost-mobile_release-1.33
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile_release-1-33/zh_Hans/

Translated using Weblate (Russian)

Currently translated at 100.0% (617 of 617 strings)

Translation: mattermost/mattermost-mobile_release-1.33
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile_release-1-33/ru/

Translated using Weblate (Turkish)

Currently translated at 100.0% (617 of 617 strings)

Translation: mattermost/mattermost-mobile_release-1.33
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile_release-1-33/tr/

Translated using Weblate (Polish)

Currently translated at 99.8% (616 of 617 strings)

Translation: mattermost/mattermost-mobile_release-1.33
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile_release-1-33/pl/

Translated using Weblate (Portuguese (Brazil))

Currently translated at 99.8% (616 of 617 strings)

Translation: mattermost/mattermost-mobile_release-1.33
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile_release-1-33/pt_BR/

Translated using Weblate (Spanish)

Currently translated at 99.8% (616 of 617 strings)

Translation: mattermost/mattermost-mobile_release-1.33
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile_release-1-33/es/

Translated using Weblate (Romanian)

Currently translated at 100.0% (617 of 617 strings)

Translation: mattermost/mattermost-mobile_release-1.33
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile_release-1-33/ro/

Translated using Weblate (German)

Currently translated at 99.8% (616 of 617 strings)

Translation: mattermost/mattermost-mobile_release-1.33
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile_release-1-33/de/

Translated using Weblate (Japanese)

Currently translated at 99.8% (616 of 617 strings)

Translation: mattermost/mattermost-mobile_release-1.33
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile_release-1-33/ja/

Translated using Weblate (Korean)

Currently translated at 99.8% (616 of 617 strings)

Translation: mattermost/mattermost-mobile_release-1.33
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile_release-1-33/ko/

Translated using Weblate (Ukrainian)

Currently translated at 99.8% (616 of 617 strings)

Translation: mattermost/mattermost-mobile_release-1.33
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-mobile_release-1-33/uk/

Co-authored-by: elias <elias@mattermost.com>
Co-authored-by: aeomin <lin@aeomin.net>
Co-authored-by: Alexey Napalkov <flynbit@gmail.com>
Co-authored-by: Kaya Zeren <kayazeren@gmail.com>
Co-authored-by: Viorel-Cosmin Miron <cosmin@uhlhost.net>
Co-authored-by: Gregory Stock <gregory.stock@gmx.de>
Co-authored-by: Tom De Moor <tom@controlaltdieliet.be>
Co-authored-by: mlongo <m.longo@metalsistem.com>
Co-authored-by: Elisabeth Kulzer <elisabeth.kulzer@mattermost.com>
2020-06-26 14:23:51 -04:00
Mattermost Build
75533128b1
Automated cherry pick of #4454 (#4485)
* Ensure state teams and members are up-to-date

* Remove trailing spaces

Co-authored-by: Miguel Alatzar <this.migbot@gmail.com>
2020-06-25 21:24:57 -07: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
d05c39d323
Various fixes: (#4476)
* Fix map call on Set
* Ensure we don't destructure non-iterable values
* Include error message and stack in Alert

Co-authored-by: Miguel Alatzar <this.migbot@gmail.com>
2020-06-23 16:48:34 -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
91692f78b8
Automated cherry pick of #4448 (#4462)
* MM-25820 prevent double tap in post options

* Fix weird behavior on iOS when doble tapping on add reaction and edit in post options

* Callback after close

Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
2020-06-21 20:55:01 -04: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
Mattermost Build
bbe51d91f3
Automated cherry pick of #4452 (#4457)
* Remove withEncryption

* Remove warm up

* Downgrade react-native-keychain

Co-authored-by: Miguel Alatzar <this.migbot@gmail.com>
2020-06-19 16:19:50 -07:00
Elias Nahum
a5c2f86f0b
MM-25670 perform search when hitting Enter on HW keyboard (#4432) 2020-06-18 10:59:51 -04:00
Elias Nahum
b316ad5a20
MM-25931 Handle incoming session expired push notification (#4417) 2020-06-17 21:32:08 -04:00
Mattermost Build
c9dae37414
MM-25350 Hide 'Select Team' title on modal when error occurs (#4447)
Co-authored-by: Amit Uttam <changingrainbows@gmail.com>
2020-06-17 21:31:30 -04:00
Elias Nahum
6664d2531b
Fix unhandled error when logging out from the select team screen (#4423) 2020-06-17 21:28:50 -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
f90d12f05a
Automated cherry pick of #4371 (#4445)
* MM-21368 Notify user when editing message that's too long

* Disable 'Save' button to prevent edits from being posted
* Display error message specific to the message size and allows max, instead of the current, default "Invalid Message" error.

* Split message length error into text (left justified) and counts (right justified)

UX guidance from PR review

* UX Review: Wrap for longer error text + spacing adjustment

* UX Review: Align split messages to top + add spacing in-between

* UX Review: Align error message box padding with content

Co-authored-by: Amit Uttam <changingrainbows@gmail.com>
2020-06-17 21:26:30 -04:00
Mattermost Build
ae65a4af6f
MM-13076 Start with store results for at-mention/search autocomplete (#4444)
Currently, at-mention and search autocomplete do not render if there is a server request or network problem/outage, because the only data used to populate autocomplete results is a server request.

Now, these autocompletes will render initially with user data currently in store, and then re-rendered in place, once the server response completes.

Co-authored-by: Amit Uttam <changingrainbows@gmail.com>
2020-06-17 21:26:13 -04:00
Mattermost Build
0cd123aecc
MM-25695 Select channel when switching teams if available (#4443)
Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
2020-06-17 21:25:59 -04:00
Mattermost Build
311c107f54
Automated cherry pick of #4370 (#4442)
* Animate top bar height/padding

* Update import order

Co-authored-by: Miguel Alatzar <this.migbot@gmail.com>
Co-authored-by: Miguel Alatzar <migbot@users.noreply.github.com>
2020-06-17 21:25:44 -04:00
Mattermost Build
cf3ff99cd8
MM-24029 Fix date re-selection on search bar (#4441)
Picking a new date string (tapping a date on the autocomplete calendar) to replace an already populated date string in the search bar, leaves the search text garbled. This was because of incorrect handling of the tap cursor position in the search box.

Co-authored-by: Amit Uttam <changingrainbows@gmail.com>
2020-06-17 21:25:29 -04:00
Mattermost Build
56806a9d9f
Fix sidebar search bar (#4440)
Co-authored-by: Miguel Alatzar <this.migbot@gmail.com>
2020-06-17 21:21:34 -04:00
Mattermost Build
916d93daab
MM-24201 List joinable teams alphabetically (#4439)
Matches webapp behaviour.

Co-authored-by: Amit Uttam <changingrainbows@gmail.com>
2020-06-17 21:21:18 -04:00
Mattermost Build
817d1792ce
Automated cherry pick of #4362 (#4438)
* 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

Co-authored-by: Amit Uttam <changingrainbows@gmail.com>
2020-06-17 21:21:03 -04:00
Mattermost Build
240ad3857c
Automated cherry pick of #4354 (#4437)
* Remove border to login option buttons

* Remove email login option color for O365

Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
2020-06-17 21:20:47 -04:00
Mattermost Build
5c54186c8d
MM-24895 fetch roles if needed and add team member to the store when joining a new team (#4436)
Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
2020-06-17 21:20:25 -04:00
Mattermost Build
dc0133bf01
MM-24964 select server url correctly animate error with keyboard (#4435)
Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
2020-06-17 21:19:19 -04:00
Mattermost Build
8e858c76b5
MM-24932 Bold LHS active channel manually marked as unread (#4434)
Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
2020-06-17 21:17:48 -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
514e9cfd08
Automated cherry pick of #4418 (#4419)
* Wrap await calls in try/catch

* Fix spacing

Co-authored-by: Miguel Alatzar <this.migbot@gmail.com>
2020-06-12 13:15:35 -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
e6547d7dc1
MM-25967 await until cookies are cleared (#4413)
Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
2020-06-11 15:13:21 -04: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
bc25a29c42
MM-25782 improve channel member reducer speed to sync memberships (#4402)
Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
2020-06-09 14:39:48 -04:00
Elias Nahum
4c4dd8297d
translations PR 20200608 (#4398) 2020-06-08 21:54:36 -04:00
Mattermost Build
c3fc53a071
Removed unnecessary trim (#4399)
Co-authored-by: marianunez <maria.nunez@mattermost.com>
2020-06-08 21:43:40 -04:00
Mattermost Build
34af598a6d
clear cookies on again trying to login (#4395)
Co-authored-by: Harshit Khetan <khetanmehul@gmail.com>
2020-06-08 15:27:14 -04:00
Mattermost Build
ff89f3530e
Ensure previous state is cleared when logout (#4396)
Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
2020-06-08 15:26:53 -04:00
Mattermost Build
8a95000bd0
MM-25831 Fix timing issue with cancelPing (#4394)
With `getUrl` recently [becoming async](https://github.com/mattermost/mattermost-mobile/commit/293470ff#diff-60b06b1c4aab028b96d9b207e84000c6R316), the global definition of the cancelPing function wasn't being made available in time for use by other functions (e.g. `handleSslProblem` and `handleConnect`)
2020-06-08 14:24:16 -03:00
Mattermost Build
21e1466068
MM-25849 Apply backoff & retry logic only for ID-loaded push notifications (#4393)
Changes in #4302 piggy-backed on the existing [exception catching logic](https://github.com/mattermost/mattermost-mobile/pull/4302/files#diff-266cddcf80a6bc300b40cc922e7a659bL101-L102) to retry failed request (status != 200). However, the change applied retries for any type of push notification.
2020-06-08 12:54:14 -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
Elias Nahum
b34ce42016
translations PR 20200601 (#4378) 2020-06-03 08:53:10 -04:00