Commit graph

3010 commits

Author SHA1 Message Date
Miguel Alatzar
318cd13064
Check canPost permissions for v5.22+ (#4193) (#4201) 2020-04-22 20:32:12 -07:00
Mattermost Build
2fa572bcc7
Automated cherry pick of #4195 (#4206)
* Patch react-native-image-picker to allow selecting video

* Improve patch

* Fix Attaching a Photo capture

Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
2020-04-22 19:10:28 -04:00
Elias Nahum
976050ecc2
MM-24446 Fix Crash on iOS with EMM enabled (1.30) (#4204)
* Fix Crash on iOS with EMM enabled

* Fix Android Passcode authentication

* Fix Login screen header when EMM does not allow other servers
2020-04-22 19:09:32 -04:00
Miguel Alatzar
27411cb119
[MM-24426] Set previous app version in redux store (1.30) (#4196)
* Set previous app version in redux store

* Update state

* Log error
2020-04-22 08:23:45 -07:00
Miguel Alatzar
a17bc4683c
Bump app build number to 285 (#4167) (#4168) 2020-04-16 19:35:34 -07:00
Mattermost Build
7f3798a547
Automated cherry pick of #4165 (#4166)
* Fix headers when preloading images

* Import isGif

Co-authored-by: Miguel Alatzar <this.migbot@gmail.com>
Co-authored-by: Miguel Alatzar <migbot@users.noreply.github.com>
2020-04-16 19:28:14 -07:00
Elias Nahum
2418a3bdfd
Bump app build number to 284 (#4162) 2020-04-16 16:42:04 -04:00
Mattermost Build
7a4e7711d1
Automated cherry pick of #4160 (#4161)
* Correctly load file attachment images

* Remove cache control from gallery

* Remove unused import

Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
2020-04-16 16:33:45 -04:00
Elias Nahum
fc25935482
Bump app build number to 283 (#4159) 2020-04-16 09:01:30 -04:00
Elias Nahum
a02e536e35
MM-24202 Add ability to invalidate specific versions (#4158) 2020-04-16 08:53:20 -04:00
Mattermost Build
f610a1dd55
Bump app build number to 282 (#4155)
Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
2020-04-14 16:03:00 -04:00
Elias Nahum
30c8d35966
Remove Client4 reference in progressive_image 2020-04-14 15:50:29 -04:00
Elias Nahum
5a2bb0125b
Validate previous app version (#4151)
* Validate previous app version

* Update snapshot and fix typo in constant
2020-04-14 15:03:22 -04:00
Mattermost Build
8f2b8f3cc3
Automated cherry pick of #4150 (#4152)
* Ensure postProps is not null/undefined

* Disable camelcase check

Co-authored-by: Miguel Alatzar <this.migbot@gmail.com>
Co-authored-by: Miguel Alatzar <migbot@users.noreply.github.com>
2020-04-14 09:59:43 -07:00
Mattermost Build
7c66f4a0f7
Bump app build number to 281 (#4149)
Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
2020-04-13 19:31:05 -04:00
Elias Nahum
957430c891
translations PR 20200413 (#4147) 2020-04-13 18:51:56 -04:00
Elias Nahum
93cbccf7bc
MM-24093 Fix crash when system message does not contain a username in post props (#4143) 2020-04-13 16:55:25 -04:00
Mattermost Build
919ec06535
Bump app build number to 280 (#4140)
Co-authored-by: Miguel Alatzar <this.migbot@gmail.com>
2020-04-09 15:10:32 -07:00
Mattermost Build
3f1f300aed
Don't subtract from badge count (#4136)
Co-authored-by: Miguel Alatzar <this.migbot@gmail.com>
2020-04-09 11:23:28 -07:00
Elias Nahum
518b021c8a
translations PR 20200406 (#4123) 2020-04-08 11:02:29 -07:00
Mattermost Build
4a87f02833
MM-23927 patch RNFetchBlob to report progress using X-Uncompressed-Content-Length (#4128)
Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
2020-04-07 19:08:24 -04:00
Mattermost Build
a6abc35ac5
Always show expand button (#4124)
Co-authored-by: Miguel Alatzar <this.migbot@gmail.com>
2020-04-07 10:00:18 -07:00
Mattermost Build
cdf3baf40d
Bump app build number to 279 (#4115)
Co-authored-by: Miguel Alatzar <this.migbot@gmail.com>
2020-04-02 11:55:12 -07:00
Mattermost Build
7f35c843fd
Tweak post list numbers (#4112)
Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
2020-04-02 15:01:00 -03:00
Mattermost Build
beddfa645a
Patch react-native-navigation to resolve promise when no modals to dismiss (#4107)
Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
2020-04-01 13:56:02 -03:00
Mattermost Build
a1d175173b
Automated cherry pick of #4100 (#4104)
* Check if HW keyboard is connected

* Call super

* Fix double new line insert

Co-authored-by: Miguel Alatzar <this.migbot@gmail.com>
2020-03-31 21:52:54 -03:00
Elias Nahum
5c8db9b960
translations PR 20200330 (#4097) 2020-03-31 16:41:00 -03:00
Mattermost Build
f8cc0498fe
MM-23687 Fix Android Share Extension (currently can't post) (#4096)
Fixes regression introduced in f5369ac9c5
2020-03-30 16:36:49 -03:00
Elias Nahum
e6099bcaf8
Fix post in channel batching order (#4089) 2020-03-30 15:02:35 -03:00
Elias Nahum
00a05b1671
fetch statuses for users in DM/GM's (#4086) 2020-03-30 14:19:47 -03:00
Mattermost Build
e1e86a8128
MM-23636: Default 'canPost' to true. (#4094)
Co-authored-by: Martin Kraft <martin@upspin.org>
2020-03-30 10:46:09 -03:00
Mattermost Build
3af9ea000f
Revert "Use file URL over preview URL for GIFs (#3981)" (#4091)
This reverts commit cbc6ef185c.

Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
2020-03-27 23:09:39 -03:00
Mattermost Build
b2051bfc0f
Automated cherry pick of #4079 (#4082)
* Update NOTICE.txt

* Update NOTICE.txt

Co-authored-by: Amy Blais <amy_blais@hotmail.com>
2020-03-27 09:48:07 -03:00
Elias Nahum
d893d0940b
Bump app build number to 278 (#4081)
* Update mattermost-redux

* Update Fastlane

* Bump app build number to 278
2020-03-26 20:35:38 -03:00
Mattermost Build
f2cd57ef13
Automated cherry pick of #4075 (#4077)
* Don't use state for rowsSliced/colsSliced

* Update snapshot

* Also show moreBelow when contentHeight > MAX_HEIGHT

Co-authored-by: Miguel Alatzar <this.migbot@gmail.com>
2020-03-25 16:05:21 -07:00
Mattermost Build
edb46db358
Fix Android Navbar tap events (#4076)
Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
2020-03-24 20:45:46 -03:00
Elias Nahum
fd015697a2
translations PR 20200323 (#4063) 2020-03-24 19:00:11 -03:00
Mattermost Build
8bd4a49849
Automated cherry pick of #4064 (#4073)
* MM-23341 Fix message failed banner when posting first message

* Set switchToChannel flag back to false

* Feedback review

Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
2020-03-24 17:29:45 -03:00
Mattermost Build
b830b8ec93
Automated cherry pick of #4067 (#4071)
* Add backgroundColor

* Revert backgroundColor and set elevation instead

Co-authored-by: Miguel Alatzar <this.migbot@gmail.com>
Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
2020-03-24 13:43:12 -03:00
Mattermost Build
fe477f68d5
Automated cherry pick of #4062 (#4066)
* Enable FlatList virtualization

* Update snapshot test

Co-authored-by: Miguel Alatzar <this.migbot@gmail.com>
2020-03-24 10:19:51 -03:00
Mattermost Build
1de5eb495d
Fix Message attachment actions colors on dark themes (#4065)
Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
2020-03-23 22:20:22 -03:00
Elias Nahum
6f98528b0a
translations PR 20200319 (#4055) 2020-03-22 08:56:59 -03:00
Amit Uttam
1656fc1851
MM-23234 Prefer mobile-defined state actions (#4057)
Unify usage to one set of defined dispatch actions in codebase, instead of a mix of (almost) identical actions defined in `mattermost-mobile` and `mattermost-redux` .
2020-03-20 17:10:35 -03:00
Mattermost Build
a1d246c110
Automated cherry pick of #4051 (#4053)
* Bump app version number to 1.30.0

* Bump app build number to 277

Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
2020-03-19 14:36:57 -03:00
Mattermost Build
dfc4d82452
MM-21582 Parse payload safely to report Sentry exception with needed info (#4052)
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.
2020-03-19 14:22:01 -03:00
Mattermost Build
1a831aac66
MM-23162 Remove unnecessary dimension and orientation dispatches (#4050)
`setDeviceOrientation` and `setDeviceDimensions` used to get called on any navigation change (e.g. modal launches) and triggered multiple needless dispatches.
2020-03-19 13:57:16 -03:00
Mattermost Build
e7e972b211
Update ios Podfile.lock (#4049)
Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
2020-03-19 13:42:33 -03:00
Elias Nahum
1a1c73279b
Upgrade Dependencies (#4034)
* Upgrade Navigation library

* Fix background color on Select Server

* Upgrade Navigation library

* Apply patch to nav lib

* Upgrade RNN to 6.1.1

* Update Dependencies

* Feedback review

* Call clearNavigationComponents when reset to channel
2020-03-18 19:09:20 -03:00
Elias Nahum
ec4dfb65b2
MM-23230 Batch post actions and fine tune postlint (#4042)
* PostList optimizations on FlatList

* Stop scroll to index if there is an interaction

* Fix unit tests

* MM-23176 Fix crash due to scrollToIndex out of range

* Batch mark channel as read action

* Fine tune post list

* Batch actions for getting posts

* Update app/utils/push_notifications.js

Co-Authored-By: Miguel Alatzar <migbot@users.noreply.github.com>

* Update app/actions/views/channel.js

Co-Authored-By: Miguel Alatzar <migbot@users.noreply.github.com>

* Pass state as arg to markAsViewedAndReadBatch

Co-authored-by: Miguel Alatzar <migbot@users.noreply.github.com>
2020-03-18 16:59:45 -03:00
Hossein Ahmadian-Yazdi
e8150fa7cc
[MM-21408] Make the name displayed consistent with teammate name display (#4021)
* update redux hash and function

* fix lint issue
2020-03-17 20:47:14 -04:00