Commit graph

199 commits

Author SHA1 Message Date
Miguel Alatzar
9a894641fc
[MM-14926] Include in-app notifications in iOS badge number (#3001)
* Include in-app notifications in iOS badge number

* Make foreground notifications key a const
2019-07-24 07:58:15 -07:00
Jesús Espino
ee93e4fa59
Adding guest accounts feature (#2990)
* MM-15059: Restict the permissions for guests (#2791)

* MM-15057: Adding guest badge to identify guest users (#2774)

* MM-15057: Adding guest badge to identify guest users

* Adding Guest tags in the channel title

* Adding i18n translations

* Adding DM and GM guest warnings

* Fixing check-style

* Adding and fixing tests

* Adding i18n text

* Only showing the subtitle when there is enough space

* Addressing new design changes

* Fixing eslint

* Addressing PR comments

* Moving getChannelStats to the handleSelectChannel action

* Adding the guest info in android landscape channel headers

* simplified the guest warning text generation

* Fixing i18n

* Fixing leaving channel behavior for guests (#2989)

* Fixing leaving channel behavior for guests

* Fixing tests and adding a new one

* fixing typo

* Addressing PR comments

* Addressing PR comments

* Fixing tests
2019-07-22 22:14:39 +02:00
Elias Nahum
6daa645556
MM-16829 Fix for websocket reconnects for android (#2999) 2019-07-19 16:48:59 -04:00
Miguel Alatzar
55964d2fda
Add placeholderTextColor when using placeholders (#2976) 2019-07-17 12:56:25 -07:00
Elias Nahum
b8af8a3860
Lazy android native modules (#2973)
* Lazy loading Android modules

* Remove react-native-bottom-sheet

* Remove comments

* npm audit fix

* Update rnn-v2 modals

* audit fix

* Fix tests
2019-07-17 11:06:21 -04:00
Miguel Alatzar
22cc139b00
[MM-17018] Handle null currentChannelMember (#2982)
* Update mattermost-redux
2019-07-16 15:21:18 -07:00
Miguel Alatzar
c321c773c3 Merge branch 'master' into rnn-v2 2019-07-12 09:01:33 -07:00
Elias Nahum
df3a3eb39f Fix android crash on Android O & P after upgrading target to 28 (#2968) 2019-07-10 10:31:13 -04:00
Miguel Alatzar
d7432d3d41 Merge branch 'master' into rnn-v2 2019-07-09 14:08:15 -07:00
Harrison Healey
ae521ba026
MM-16695 Update mattermost-redux to add additional null check (#2951)
* MM-16695 Update mattermost-redux to add additional null check

* Update mattermost-redux
2019-07-08 09:11:31 -04:00
Miguel Alatzar
1b9b1e3f39 Merge branch 'master' into rnn-v2 2019-07-05 15:56:56 -07:00
Elias Nahum
bba0b99568 Update device info ref (#2953) 2019-07-05 13:37:55 -04:00
Miguel Alatzar
51aac1e6e7 Merge branch 'master' into rnn-v2 2019-07-02 18:15:19 -07:00
Harrison Healey
0ff6dba3c8
MM-16477 Check for modified users on reconnect (#2936)
* MM-16477 Move websocket status to redux

* MM-16477 Check for modified users on reconnect

* Update mattermost-redux

* Update mattermost-redux
2019-07-02 14:20:48 -04:00
Harrison Healey
02f97002d0 MM-16480 Update mattermost-redux (#2917) 2019-06-24 17:22:01 -03:00
Miguel Alatzar
913f05e131
[MM-16011] Update screens related to main sidebar (#2907)
* Update screens

* Update login tests

* Remove done

* Fix failing tests

* Update screens and components

* Check styles fix

* Update tests

* Prevent setState call after component unmounts

* Add empty setButtons func to dummy navigator

* Remove platform check

* Remove Platform import

* Update react-native-navigation version

* Add separate showModalOverCurrentContext function

* check-style fixes

* Remove overriding of AppDelegate's window

* Fix modal over current context animation

* Add showSearchModal navigation action

* Check-style fix

* Address review comments
2019-06-24 10:58:15 -07:00
Elias Nahum
36b235d49f
MM-16432 Fix missing posts when using since API (#2901) 2019-06-19 18:25:52 -04:00
Elias Nahum
8cc94f52f0 Fix crash on Android by Updating JSC (#2900) 2019-06-19 16:14:50 -04:00
Miguel Alatzar
50a738a702 [MM-16009] Update screens that can be displayed prior to the Channel screen. (#2887)
* Update screens

* Update login tests

* Remove done

* Fix failing tests
2019-06-19 15:42:27 -04:00
Miguel Alatzar
0f948f650d Merge branch 'master' into rnn-v2 2019-06-18 09:58:35 -07:00
Miguel Alatzar
a6aa4dd2cc
Update react-native-device-info and fix status value: (#2892) 2019-06-17 20:22:54 -07:00
Elias Nahum
6546dfdfd2
Set post list data and timestamp based on the user timezone if available (#2888) 2019-06-17 15:24:28 -04:00
Eli Yukelzon
056d5a91b7 MM-15486 - Archived channels appear incorrectly on mobile (#2882)
* properly separate archived channels from 'other'

* make sure fetch is performed to display full list

* reverted unneeded change

* corrected display behaviour

* code cleanup

* redux commit reference updated
2019-06-17 10:22:36 -04:00
Miguel Alatzar
270d148413 Update react-native-notifications (#2881) 2019-06-15 14:18:33 -04:00
Miguel Alatzar
7d67f1214e
[MM-16008] Update setNavigatorStyles and replace setOnNavigatorEvent (#2877)
* Update setNavigatorStyles

* Replace navigator.setOnNavigatorEvent and callbacks

* Update unit tests

* Save user notify props on componentWillUnmount

* Add TODOs about removing componentDidAppear/setNavigatorStyles

* check-styles fix

* Fix eslint errors
2019-06-14 08:14:26 -07:00
Elias Nahum
13d06a4588
MM-16280 Fix when post fail to send (#2880) 2019-06-12 16:20:14 -04:00
Harrison Healey
8d2b2b09d9 Fix incorrect merge 2019-06-05 11:25:54 -04:00
Harrison Healey
5ff98e8a86 Merge branch 'master' into rnn-v2 2019-06-05 11:25:14 -04:00
Harrison Healey
8e1a9e8322
MM-15774 Add native code to support RNN v2 on iOS (#2848)
* Remove fix for MM-9233

* MM-15774 Add native code to support RNN v2 on iOS
2019-06-03 16:44:28 -04:00
Tsilavina Razafinirina
f6a73e2f2c MM-11287 Add support for plus sign and period/dot in custom URL schemes (#9155) (#2841) 2019-06-03 11:23:15 -04:00
Elias Nahum
1e8a1307af
Update netInfo to check for internet connectivity (#2850)
* Update netInfo to check for internet connectivity instead of using apple.com as a reference

* Fix network indicator position on tablets
2019-05-31 13:33:56 -04:00
Elias Nahum
de37a2aa7a
Fix autocomplete showing behind the keyboard on iOS and not working on Android (#2830)
* Fix autocomplete showing behind the keyboard on iOS and not working on Android

* Unbundle config for Android

* Dismiss keyboard on post long press, fix scroll to bottom on new message and update tests

* Add a timeout before scrolling to give time to render the last post

* Fix crash on Android
2019-05-27 19:18:43 -04:00
Elias Nahum
0d38b22a51
MM-15667 if post was removed exclude it from postsInChannel (#2831) 2019-05-24 15:35:28 -04:00
Miguel Alatzar
a8eb25c965 [MM 15552] Determine number of placeholder rows from height (#2827)
* Calculate maxRows in ChannelLoader component

* Update rn-placeholder

* Fix style check
2019-05-24 12:01:02 -04:00
Elias Nahum
6c1b366680 update react-native-device-info crash fix (#2824) 2019-05-23 09:44:38 -07:00
Miguel Alatzar
152e1fe264 Upgrade react-native-sentry (#2815) 2019-05-22 10:17:24 -04:00
Saturnino Abril
d498f15040
Update mmjstool commit with fix on newline to end of file (#2814)
* update mmjstool commit with fix on newline to end of file

* explicitly add commit to package.json
2019-05-22 16:50:12 +08:00
Miguel Alatzar
ccadc551ce
Update mattermost-redux (#2813) 2019-05-21 13:04:56 -07:00
Elias Nahum
f7f56e958b
MM-9494 & MM-13888 Tapping execute actions & interactive keyboard dismissal (#2799)
* MM-9494 & MM-13888 Tapping with the keyboard opened executes the action & iOS iteractive keyboard

* Fix tests

* feedback review

* add new line at the end of file

* feedback review and added todo list

* Track interactive dismiss keyboard and set scrollview bounds natively

* Fix snapshots

* Fastlane default to current branch when no BRANCH_TO_BUILD is set

* Set NODE_OPTIONS in ios build script

* Rebind scrollview when channel gets first set of posts

* Keep scrolling momentum on keyboard close

* Update react-native-keyboard-tracking-view

* Fix ScrollView offset with keyboard-tracking

* Fix offset while dragging the keyboard

* Allow action on channel drawer on tablets

* Fix typo

Co-Authored-By: Saturnino Abril <saturnino.abril@gmail.com>

* Fix indentation
2019-05-20 12:02:00 -04:00
Elias Nahum
bbfd6e820f
Fix select default channel (#2800)
* Fix select default channel

* use utility with channels in team object

* feedback review

* update mattermost-redux
2019-05-16 20:02:19 -04:00
Joram Wilander
76191be193 Update rnfetchblob (#2802) 2019-05-16 13:44:22 -07:00
Miguel de la Cruz
35e4a2b73a
[MM-14751] Take group_constrained into account when adding users to channels (#2737)
* [MM-14751] Take group_constrained into account when adding users to channels

* Pass current channel properties instead of the complete object

* Point package.json to new mattermost-redux
2019-05-16 10:20:00 +01:00
Elias Nahum
f36ee37402
Upgrade to RN 0.59.6 and dependencies (#2777)
* Upgrade to RN 0.59.6 and dependencies

* Remove channel loader unused style

* Update to the latest netInfo that fixes a crash

* Do not set default timezone with moment

* Use RN 0.59.8
2019-05-13 13:33:18 -04:00
Elias Nahum
87ee3c893e MM-15532 properly mark channel as read when reading the channel in another client (#2789) 2019-05-13 12:20:27 -04:00
Miguel Alatzar
1d6dccf0a5
Update react-native-fetch-blob dependency to use okhttp3 v3.13.1 (#2782) 2019-05-09 14:50:20 -07:00
Miguel Alatzar
1a81daaa37
[MM-15379] Avoid possible reading of .name on undefined (#2778)
* Avoid possible reading of property on undefined

* Add unit test for handleSelectChannelByName

* Update mattermost-redux hash
2019-05-08 13:16:03 -07:00
Sergey Zhukov
7eeda159db Removed @babel/polyfill (#2776) 2019-05-08 15:00:08 -04:00
Joram Wilander
189d2eb607 Update mattermost-redux (#2775) 2019-05-07 15:52:11 -07:00
Saturnino Abril
e086d66ec2
[MM-13955] Add telemetry for Android (#2719)
* add markers for Android profiling

* update per comments

* Remove beta build flag

* update per comment, latest change on telemetry server and others

* rebase and fix merge conflicts, and update per comments

* update commit hash of mattermost-redux
2019-05-08 00:23:59 +08:00
Elias Nahum
5ce9208d32 MM-14958 Scroll to bottom when posting a new message (#2761) 2019-05-07 13:28:16 +05:30