Commit graph

1358 commits

Author SHA1 Message Date
Maxim Zaks
bf3f0be37e Don't show preview if remove_link_preview is set to true (#2939)
* Don't show preview if remove_link_preview is set to true

* remove white spaces
2019-07-03 01:44:29 +05:30
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
Elias Nahum
9f88923656
Place the new message indicator at the top of the screen (#2943)
* Place the new message indicator at the top of the screen

* Add unit tests for channel postVisibility reducer
2019-07-02 12:28:13 -04:00
Elias Nahum
20bcb9d44a
Allow the server url to be cleared (#2942)
* Allow the server url to be cleared

* Remove getDerivedStateFromProps
2019-07-02 10:33:40 -04:00
Elias Nahum
614e6da142 Fix AD/LDAP & SAML profile sync properties (#2941) 2019-07-02 10:11:14 -04:00
Michael Kochell
1588f46ae4 Pass cookie for post actions (#2945) 2019-07-02 08:18:34 -04:00
Elias Nahum
89b96d51db MM-16430 refactor app entry point (#2924)
* MM-16430 refactor app entry point

* iOS Extensions to use session token from KeyChain

* Remove token from general credentials entity

* Fix mattermost-managed.ios to return the cachedConfig

* Migrate server based keychain for android push notifications

* remove unneeded async

* Remove unneeded android InitializationModule
2019-06-26 15:21:20 -04:00
Elias Nahum
bef593c3cf
MM-16467 Fix iOS layout when playing a youtube video in landscape (#2926) 2019-06-26 08:33:04 -04:00
Miguel Alatzar
fdb6cc6b2a [MM-16456] Ensure Flatlist is mounted prior to calling scrollToOffset (#2925)
* Ensure Flatlist is mounted prior to calling scrollToOffset

* Make linter happy
2019-06-26 17:01:44 +08:00
Elias Nahum
c121f66526 MM-16463 Fix replying from push notification to a message in a thread (#2927) 2019-06-26 16:59:07 +08:00
Jesse Hallam
0e84b91257 MM-16442: count actual reactions before falling back to has_reactions (#2910)
* MM-16442: leverage post hasReactions utils function

This handles backwards compatibility with servers that do not have post
metadata, allowing the client to detect the presence of reactions that
in turn might need to be loaded when the component is mounted.

* temporary mattermost-redux commit for testing

* revert usage of hasReactions, and count directly

We still fallback to has_reactions if set, in case we're connected to a server without post metadata.

* revert mattermost-redux changes
2019-06-24 15:36:24 -04:00
Elias Nahum
e6fdef3451 MM-16397 save draft when app state changes (#2899)
* MM-16397 save draft when app state changes

* Unit tests
2019-06-22 11:21:57 -07:00
Chris Duarte
4d9780da56 Ios accessibility fixes (#2842)
* UCHAT-4371 // MM-15771 - iOS - Larger Fonts Cut Off Text in menu and settings screens

revert padding right

* Update snapshot
2019-06-21 16:10:16 -04:00
Elias Nahum
3f925df9d9 MM-16392 Split view support & hide sidebar on tablets (#2898) 2019-06-21 14:10:30 -04:00
Harrison Healey
06b3273fd8 MM-16472 Fix renderItem not returning anything (#2909) 2019-06-21 08:29:03 -07:00
Elias Nahum
f6e42da251
MM-16239 disable fields according to SAML or LDAP (#2878)
* MM-16239 disable fields according to SAML or LDAP

* fix typo
2019-06-17 15:27:35 -04: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
59ad3a22c4
[MM-15668] Member list items are selectable and enabled only when canManagerUsers is true (#2844)
* Member list items are selectable only when canManagerUsers is true

* Address review comment
2019-06-16 11:15:50 -07:00
Renato Peterman
650aa6aae2 [MM-14917] RN Android: Push notification settings are only saved when closing settings page (#2735)
* Add required action and props

* Allow callback param to setModilePush and setMobilePushStats

* Added saveNotificationProps method to save data on alert save action

* Fix import order

* Fix import path

* Fix import order

* Added defaultProps currentUser to NotificationSettingsMobileAndroid

* Added missing trailing comma
2019-06-15 14:29:21 -04:00
Woolim Cho
92f20a78ef Add key to SlideUpPanel (#2845) 2019-06-15 14:21:49 -04:00
Sudheer
d3b2759c36 MM-16228 Add compatibility for removal of ExperimentalEnablePostMetadata flag from config (#2883) 2019-06-13 16:29:35 -04:00
Elias Nahum
29240b9c6f
MM-16061 Keep unread channels in place on Tablets (#2865) 2019-06-06 15:15:40 -04:00
Elias Nahum
2abf044193
Show broken image for inline images without dimensions (#2868) 2019-06-06 15:14:32 -04:00
Elias Nahum
cdfc1a8317 Fix image preview width on tablets (#2867) 2019-06-06 21:03:17 +08:00
Elias Nahum
4d664f6654
Fix file upload not completing (#2866)
* Fix file upload not completing

* Update snapshots
2019-06-06 08:39:06 -04:00
Elias Nahum
bb8f524983
MM-16070 Fix channel sidebar state while filtering (#2864) 2019-06-05 19:33:23 -04:00
Elias Nahum
e5dab98a8e
Fix opengraph image on tablet to account for the sidebar (#2863) 2019-06-05 17:58:28 -04:00
Elias Nahum
457413196e
MM-15643 Fix race condition to prompt for passcode and (#2862)
detect if passcode has been removed while the app in the background
2019-06-05 11:08:01 -04:00
Elias Nahum
89c2e66dfd
MM-16013 make paperplain animation faster (#2860) 2019-06-05 11:06:29 -04:00
Woolim Cho
b81cd49fb4 [MM-13879] Add Edit profile button to RHS menu and own profile pop-over (#2832)
* Add Edit Profile button to right panel menu

* Make user info of right panel menu opens the users own profile

* Add an Edit button of the users own profile

* handle transitions

* Add commandType to propTypes

* Update test codes

* add unit tests for user_profile

* Assign commandType manually

* Remove async, set delay to 0
2019-06-05 16:11:42 +08:00
Saturnino Abril
1d215deea6 fix server version for Android telemetry (#2857) 2019-06-03 09:02:26 -07: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
9bddbe6642 MM-15912 Fix uploads stuck at 100% (#2847) 2019-05-30 11:57:15 -07:00
Harrison Healey
3503025e53 MM-15643 Better close app when checking for pin code (#2846) 2019-05-30 11:46:35 -07:00
Harrison Healey
098a0404f7 MM-15575 Make Entry mount properly after hydration (#2839)
* MM-15575 Make Entry mount properly after hydration

* Clear unsubscribeFromStore after calling it
2019-05-28 11:36:35 -07:00
Eli Yukelzon
a6307c5ca6 MM-12320 - Change "about" section references to use the site name when it is configured (#2835)
* Change "about" section references to use the site name when it is configured

* Removed non-english changes

* Removed non-english changes

* cleanup

* Fixed indentation

* destructuring
2019-05-28 08:49:23 -04:00
Harrison Healey
6e099d6a21 MM-15643 Send user to settings when passcode is required (#2836)
* MM-15643 Send user to settings when passcode is required

* Allow access to the managed config in the iOS extensions
2019-05-27 19:38:32 -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
Miguel Alatzar
b1bdd2b07c Add unit test for PostBody's measurePost (#2833) 2019-05-25 11:58:49 -04:00
Miguel Alatzar
f444b70f4f
Allow updating of isLongPost after editing message (#2829) 2019-05-24 14:49:44 -07: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
ecfeee78a2 Allow drawer pan responder when switching teams (#2823) 2019-05-23 09:00:48 -07:00
Harrison Healey
fcd9e401f5 MM-15582 Don't show forgot password link without email/username login (#2811) 2019-05-22 11:55:27 -04:00
Elias Nahum
90d9b7acca
Fix code so it can be parsed by mmjstool (#2816) 2019-05-22 09:31:30 -04:00
Miguel Alatzar
9931ec209b
Allow flagging of read-only channel posts (#2801) 2019-05-21 09:11:45 -07:00
Harrison Healey
1299b9d995 MM-14802 Add autocorrect when editing a post (#2810) 2019-05-21 08:51:00 -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
2b4574885b
Keep the channel drawer opened on tablets (#2793)
* Keep the channel drawer opened on tablets

* update en.json after running mmjstool

* Set the channel drawer to width 220

* feedback review

* PM Review

* Fix snapshots
2019-05-16 20:40:32 -04:00
Elias Nahum
d0071c21b0 MM-15282 Fix cutoff placeholder on Android (#2798)
* MM-15282 Fix cutoff placeholder on Android

* Feedback review
2019-05-16 17:35:09 -07:00