Commit Graph

2982 Commits

Author SHA1 Message Date
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
Amit Uttam
8b33b449d0 MM-22237 Fix text capitalization (#4041) 2020-03-17 15:50:48 -07:00
Elias Nahum
3af9af68e4 MM-22318 Fix autocomplete selection char code for native emojis (#4040) 2020-03-17 12:48:22 -07:00
Farhan Munshi
217ef59f1c [MM-23271] Check canAddReaction permission inside of render reactions (#4032)
* MM-23271 check canAddReaction when creating in reactions component

* MM-23271 Fixing linting
2020-03-16 11:29:13 -04:00
Amy Blais
77fdde091e Update CHANGELOG.md (#4036)
* Update CHANGELOG.md

* Update CHANGELOG.md
2020-03-16 12:07:17 -03:00
Miguel Alatzar
b81a08bf50 Update mattermost-redux (#4031) 2020-03-13 18:27:51 -07:00
Elias Nahum
c685690d1e MM-23179 Avoid unnecessary Overdraws (#4025)
* Set navigation based on theme only once

* Remove unnecessary overdraws

* Feedback review
2020-03-13 11:22:43 -07:00
Miguel Alatzar
d1add3c743 [MM-23241] Use expanded link from state (#4029)
* Get expanded link from state

* No need to await getRedirectLocation
2020-03-13 15:03:37 -03:00
Elias Nahum
50fc7d6896 Remove ExperimentalUsernamePressIsMention build time feature (#3993) 2020-03-13 10:54:19 -07:00
Martin Kraft
fbd7fedfbc MM-21925: Enforces 'create_post' permission. (#3904)
* MM-21925: Enforces 'create_post' permission.

* MM-21925: Reverts adding 'can_post' check from post component.

* MM-21925: Removes unused variable and some duplicate imports.

* MM-21925: Removes unnecessary prop.

* MM-21925: Removes unused test prop.
2020-03-13 10:17:42 -03:00
Amy Blais
aa5951a2b2 v1.29 Changelog (#3939) 2020-03-13 10:17:26 -03:00
Elias Nahum
0f3ea72556 Bump app build number to 276 (#4028) 2020-03-11 18:25:56 -03:00
Elias Nahum
d7acd5d0c3 MM-23176 Fix crash due to scrollToIndex out of range (#4026) 2020-03-11 17:14:11 -03:00
Elias Nahum
0a98672e23 Bump app build number to 275 (#4022) 2020-03-09 17:44:41 -03:00
Elias Nahum
b8562e956b MM-22975 Fix archive handle when server does not allow view archive channel (#4019)
* MM-22975 Fix archive handle when server does not allow vieweing an archive channel

* Update mm-redux ref
2020-03-09 17:06:02 -03:00
Elias Nahum
5f74491ea8 Upgrade Navigation library (#3997)
* 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
2020-03-09 12:50:42 -07:00
Harrison Healey
f751b552b4 Add custom rule to prevent passing getState into dispatch (#4010)
* Add custom rule to prevent passing getState into dispatch

* Update package.json
2020-03-06 17:07:20 -05:00
Farhan Munshi
0bb573c7e0 MM-22622 Disable at mention highligh in channel header (#4005) 2020-03-06 11:50:38 -07:00
Miguel Alatzar
a8430bd3af Bump app build number to 274 (#4017) 2020-03-06 11:45:39 -07:00
Miguel Alatzar
bdbef9444a Fix crash for unarchived system message (#4004) 2020-03-05 16:39:37 -07:00
Miguel Alatzar
b650c9acc0 MM-22385 RN: iOS - Automatic Replies custom message SafeAreaView fix (#4001)
* Applying paddingHorizontal to auto responder textbox

* Making sure paddingHorizontal applies when in portrait mode

* Final cleanup
2020-03-05 12:12:55 -07:00
Miguel Alatzar
898b59ab27 Fix app hanging when switching to a team after opening push notification (#4013) 2020-03-05 09:52:56 -07:00
Amit Uttam
558965aba3 Override bestAttemptContent only when we have values (#4012) 2020-03-05 13:39:32 -03:00
Amit Uttam
1d3c006b97 MM-23014 Keep Android cache for vector icons (#4011) 2020-03-05 13:23:39 -03:00
Amit Uttam
7d002ccdf3 Check for null imageConfig (#4009) 2020-03-04 18:10:12 -03:00
Elias Nahum
815e54bc79 Bump app build number to 273 (#4006) 2020-03-04 15:50:32 -03:00
Elias Nahum
3e7096de3f Flush store on logout (#4002) 2020-03-04 09:18:20 -07:00
Elias Nahum
6eb7b5d682 MM-22963 Fix Android post GIF from keyboard (#3996) 2020-03-04 08:44:11 -03:00
Elias Nahum
06f03d88e9 Ensure modals opened from the Settings Sidebar have a close icon (#3994)
* Ensure modals opened from the Settings Sidebar have a close icon

* Feedback during review
2020-03-04 08:41:03 -03:00