Commit graph

2916 commits

Author SHA1 Message Date
Mattermost Build
6f53f9be16
Fix typing on input box after returning from an archived channel (#3995)
Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
2020-03-03 20:27:06 -03:00
Mattermost Build
c009047003
Automated cherry pick of #3988 (#3991)
* MM-22790 Fix Load more joinable/archived channels in more channels screen

* Add unit tests

Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
2020-03-03 13:40:11 -03:00
Elias Nahum
446ddf91d4
translations PR 20200302 (#3990) 2020-03-03 09:39:55 -07:00
Elias Nahum
687968bf39
MM-22752 Preserve other teams channel membership (#3987) (#3989) 2020-03-02 16:13:07 -03:00
Mattermost Build
4bd719789f
Bump app build number to 272 (#3985)
Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
2020-03-01 10:12:25 -03:00
Mattermost Build
e059d7ea3e
Automated cherry pick of #3924 (#3983)
* Ensure isFirstRow prop is set on first row

* Determine maxPreviewColumns on mount

* Fix expand button offset on Android

* Fix moreBelow gradient

* Show right gradient when columns are sliced

* Fix moreRight conditions

Co-authored-by: Miguel Alatzar <migbot@users.noreply.github.com>
2020-03-01 09:32:04 -03:00
Mattermost Build
6a2a99b0d6
Automated cherry pick of #3978 (#3982)
* MM-22686 decrease request timeout to 5s

* MM-22752 Fix switching teams with and without connction

Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
2020-03-01 09:29:15 -03:00
Miguel Alatzar
b4d3e6c9b1
[MM-20950] Don't reset the navigation root when clearing data (#3929) (#3980)
* 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 21:09:09 -07:00
Mattermost Build
b49e0a1c62
Add set_online query param (#3979)
Co-authored-by: Miguel Alatzar <migbot@users.noreply.github.com>
2020-02-27 20:46:38 -07:00
Mattermost Build
a346a989c3
Automated cherry pick of #3921 (#3977)
* MM-21276 & MM-22419 Fix PostList insets and Channel Intro

* Update patches/react-native-keyboard-tracking-view+5.6.1.patch

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-02-27 17:10:38 -03:00
Mattermost Build
1d9135704c
Automated cherry pick of #3971 (#3976)
* MM-22379 & MM-22598 Boost perf by using FastImage cache in favor of ImageCacheManager

* Code review

Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
2020-02-27 16:45:20 -03:00
Mattermost Build
cf6cfac5e2
Automated cherry pick of #3970 (#3974)
* update android downloader

* update en.json

Co-authored-by: Hossein Ahmadian-Yazdi <hahmadia@users.noreply.github.com>
2020-02-27 13:34:24 -05:00
Mattermost Build
a398687955
Fetch archived channels (#3973)
Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
2020-02-27 10:15:04 -03:00
Mattermost Build
73008d1a5b
Automated cherry pick of #3967 (#3969)
* Fix in-app notification crashing when receiving multiple

* Dismiss the overlay when tap without waiting for interaction manager

Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
2020-02-26 13:00:37 -03:00
Mattermost Build
a3df718db7
Update fastlane (#3966)
Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
2020-02-26 12:54:08 -03:00
Elias Nahum
f90aba6632
Update redux (#3947) (#3963)
To include this new changes https://github.com/mattermost/mattermost-redux/pull/1051

Co-authored-by: Mario de Frutos Dieguez <mario@defrutos.org>
2020-02-26 11:44:13 -03:00
Elias Nahum
71450be466
translations PR 20200225 (#3961) 2020-02-25 18:16:45 -05:00
Mattermost Build
bacbc5a734
- Change "Copy Permalink" text in post options menu (#3957) 2020-02-25 16:52:12 +02:00
Mattermost Build
d28e747688
Update react-native-cookies (#3956)
Co-authored-by: Miguel Alatzar <migbot@users.noreply.github.com>
2020-02-23 10:31:51 -05:00
Mattermost Build
c969bdbbef
Bump app build number to 271 (#3955)
Co-authored-by: Miguel Alatzar <migbot@users.noreply.github.com>
2020-02-21 17:46:33 -05:00
Mattermost Build
338d627e75
Automated cherry pick of #3952 (#3954)
* Fix rn-fetch-blob cast exception

* Use toString

Co-authored-by: Miguel Alatzar <migbot@users.noreply.github.com>
2020-02-21 17:46:12 -05:00
Mattermost Build
942b088583
MM-22629 Center-align tall & thin image attachments (#3945)
Bug reported in community: https://community.mattermost.com/core/pl/yy39ajg1ajfm386dms6tdyjrtw
2020-02-18 15:51:20 -03:00
Elias Nahum
7ef8eb294c
update mm-redux 2020-02-18 09:58:47 -05:00
Mattermost Build
0ea99445ca
Bump app build number to 270 (#3943)
Co-authored-by: Miguel Alatzar <migbot@users.noreply.github.com>
2020-02-18 11:44:49 -03:00
Miguel Alatzar
3383c93df8
Performance improvements (#3911) (#3941)
* Improve sidebar performance on first load

* Initial work for switch channel

* Revert android changes

* Split Sidebar per Platform

* Fix waitForHydration executing the callback more than once

* Fix custom emoji not showing on Android

* Finalize Channel Switch

* Enable Android Ram Bundles

* Select the right team for lastChannelForTeam

* Channel loading post indicator

* Fix main sidebar base intl provider

* Update mm-redux

* No need to request configAndLicense on launch

* Load channel member roles

* Rename closeChannelDrawer to closeMainSidebar

* do not throw errors when console is called while running tests

* constant for LOADING_POSTS_HEIGHT

* Remove show more if a long post is edited and no longer long

* Update mm-redux#batch-actions branch

* Code review

* Clear notifications if channel was switched

* Import Platform

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

Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
2020-02-17 21:23:39 -07:00
Miguel Alatzar
a575f95797
Bump app build number to 269 (#3934) (#3937) 2020-02-17 13:45:56 -07:00
Mattermost Build
62d873e45d
Bump app version number to 1.29.0 (#3936)
Co-authored-by: Miguel Alatzar <migbot@users.noreply.github.com>
2020-02-17 13:38:50 -07:00
Mattermost Build
cbae026f8e
MM-20184 Remove ios drawer hack and Fix right drawer partially shown on landscape (#3933)
Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
2020-02-17 12:32:11 -07:00
Mattermost Build
99bbc79953
Use JobIntentService over IntentService (#3932)
Co-authored-by: Miguel Alatzar <migbot@users.noreply.github.com>
2020-02-17 12:28:08 -07:00
Mattermost Build
6394f89869
Automated cherry pick of #3927 (#3928)
* Bump app build number to 268

* Update server version in Android description

Co-authored-by: Miguel Alatzar <migbot@users.noreply.github.com>
2020-02-13 20:33:06 -07:00
Mattermost Build
31e5e0426e
Call completionHandler in sendReply (#3926)
Co-authored-by: Miguel Alatzar <migbot@users.noreply.github.com>
2020-02-13 20:27:24 -07:00
Mattermost Build
81292df787
Bump app build number to 267 (#3918)
Co-authored-by: Miguel Alatzar <migbot@users.noreply.github.com>
2020-02-12 13:36:42 -07:00
Elias Nahum
882bc6b32b
MM-22487 Fix race condition causing the user to logout (#3916) 2020-02-12 17:28:06 -03:00
Mattermost Build
5a6b389b5b
Bump app build number to 266 (#3915)
Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
2020-02-12 09:53:34 -03:00
Elias Nahum
b60b9985d6
translations PR 20200211 (#3912) 2020-02-12 09:42:46 -03:00
Mattermost Build
8e31c5c1b9
Bump app build number to 265 (#3910)
Co-authored-by: Miguel Alatzar <migbot@users.noreply.github.com>
2020-02-10 16:08:34 -07:00
Mattermost Build
1e40d31b30
Re-enable ram-bundles (#3908)
Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
2020-02-10 11:31:02 -07:00
Mattermost Build
fd1b8ce219
Dispatch loadConfigAndLicense on launchApp (#3906)
Co-authored-by: Miguel Alatzar <migbot@users.noreply.github.com>
2020-02-10 13:50:58 -03:00
Mattermost Build
62c244cd72
Automated cherry pick of #3898 (#3905)
* Tighten up post draft UI

* Revert "MM-15307 Updated to use InteractionManager (#3666)"

This reverts commit e08155c81b.

* Address PR review comments

* Update snapshot test

* Don't return null if no files

* Fix progress text and padding issues

* Fixes per Matt's review

* Make linter happy

Co-authored-by: Miguel Alatzar <migbot@users.noreply.github.com>
2020-02-10 11:53:25 -03:00
Mattermost Build
af715828b6
MM-22253 Reduce unnecessary re-renders in channel switching (#3901)
Re-renders were occuring because of prop and state updates that created new object references, despite being of identical value. A key culprit was `postListHeight` in `PostList` which goes through a few calls to `handleContentSizeChange` when loading posts.

Also, "New Messages" divider line is a pure component now (via `memo`) to reduce unnecessary re-renders here too.

Co-authored-by: Amit Uttam <changingrainbows@gmail.com>
2020-02-07 14:16:49 -07:00
Mattermost Build
4b016a5272
Fix typo in error.message (#3899)
Co-authored-by: Miguel Alatzar <migbot@users.noreply.github.com>
2020-02-07 09:54:16 -03:00
Mattermost Build
b7970c3a34
Remove ChannelPeek (#3897)
Introduced large number of unnecessary re-renders when opening channels, and ideally should not be a part of the channel switching/opening code path. Although this was discovered while trying to investigate an [Android-specific issue](https://mattermost.atlassian.net/browse/MM-22253), this extra code path made it difficult to see what Android is potentially doing differently than iOS.

Functionality originally introduced in #1203.

Conversation for removal is [here](https://community.mattermost.com/core/pl/hfcogf6pr7rw8k3ryq14c69c7e)
2020-02-06 22:46:09 -03:00
Mattermost Build
6806337b23
Automated cherry pick of #3892 (#3895)
* Check agains Permissions.RESULTS.GRANTED

* Fix file and image upload as well

* Fix permissions

* Make linter happy

* Use toHaveBeenCalledWith

Co-authored-by: Miguel Alatzar <migbot@users.noreply.github.com>
2020-02-06 12:14:44 -07:00
Mattermost Build
51e6b1e1aa
Automated cherry pick of #3890 (#3893)
* Use dismissModal to close ChannelInfo screen

* Missing semicolon

Co-authored-by: Miguel Alatzar <migbot@users.noreply.github.com>
2020-02-05 17:22:43 -07:00
Mattermost Build
dc7f068b15
Bump app build number to 264 (#3889)
Co-authored-by: Miguel Alatzar <migbot@users.noreply.github.com>
2020-02-04 14:57:19 -07:00
Mattermost Build
3daa365e44
Automated cherry pick of #3884 (#3887)
* Handle iOS reply action on native side

* Make linter happy

* Revert rn vector changes to .pbxproj

Co-authored-by: Miguel Alatzar <migbot@users.noreply.github.com>
2020-02-04 08:53:00 -07:00
Mattermost Build
5f0df6eb49
MM-22165 Fix channel sidebar close gesture (#3882)
Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
2020-02-01 13:15:32 -03:00
Mattermost Build
ccc9e7c75c
Automated cherry pick of #3877 (#3878)
* Bump app build number to 263

* Update ESR

Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
2020-01-30 10:39:44 -03:00
Mattermost Build
61c9110d41
Automated cherry pick of #3874 (#3876)
* Import from semver/preload

* Add unit tests

Co-authored-by: Miguel Alatzar <migbot@users.noreply.github.com>
2020-01-30 09:59:53 -03:00
Mattermost Build
bf73bf4ecc
Bump app build number to 262 (#3872)
Co-authored-by: Miguel Alatzar <migbot@users.noreply.github.com>
2020-01-28 15:47:53 -07:00