Commit graph

48 commits

Author SHA1 Message Date
Elias Nahum
5bf248d5c4
Fix getting the youtube video id (#1890)
* Fix getting the youtube video id regardless where the id is defined in the link

* feedback review

* Simplify and add unit tests for getYouTubeVideoId
2018-07-05 15:02:34 -04:00
Elias Nahum
11da5e22bc Fix badges not using the right theme prop (#1855) 2018-06-29 16:34:54 -04:00
Elias Nahum
aade1f0e35
Merge branch 'release-1.9' into merge-1.9 2018-06-27 18:17:44 -04:00
Harrison Healey
dcdf6d7971 MM-11052 Cherry-pick RN fix for Android keyboard emoji autocomplete (#1838) 2018-06-27 09:52:51 -04:00
Elias Nahum
cf24580e48 Update RNFetchBlob to allow arabic chars (#1836) 2018-06-27 08:13:28 -04:00
Stan Chan
583d6b74ee Timezone feature (#1456)
* Add automatic and manual timezone support

Update users timezone and scrollTo selected timezone in SelectTimezone coponent

Clean styles for SelectTimezone screen

Add auto-timezone update when login or enter app

Hide timezone feature behind config

Fix requested changes

Parse SupportedTimezone from config

Add localTime and localized post stamps

Add trailing commas

Include all timezone util methods from redux

Remove EnableTimezoneSelection flag

WIP get timezones from server

Pull supportedTimezones from api

Minor fixes

Remove wrapWithPreventDoubleTap

Revert back to react-intl formatDate

Include timeZone prop in FormattedTime

Refactor Timezone row into component

Minor cosmetic changes

Add minimum server support for the timezone feature

Move getSupportedTimezones to componentWillMount

Move autoUpdateTimezone function to handleSuccessfulLogin

Specify user timezone in profile_header

Remove format props from FormattedTime

Add ExperimentalTimezone flag

Replace Client().getServerVersion() with entities.general.serverVersion

Add isTimezoneEnabled helper function

Move isMinimumServerVersion to utils/timezone.js

* Fix style errors

* Remove date-time-format-timezone polyfill

* Feedback changes

* Use timezone selector from redux

* Explicitly pass hour12 props to intl.formatDate

* Update package-lock

* Revert iOS project file changes

* Fix license header

* Include timezone related paths in modulePaths

* Fix license header

* Fix minor issue with rebasing

* Fix issue with getconfig in GeneralSettings

* Update package-lock
2018-06-27 06:55:03 -04:00
Harrison Healey
ffd7c70d61 MM-10996 Fixed getting post thread after receiving posts over the websocket (#1835) 2018-06-26 19:39:07 -04:00
Elias Nahum
f6d4d40caa Open YouTube videos at a specific time (#1794)
* Open YouTube videos at a specific time

* Move react-native-youtube changes to a fork
2018-06-26 01:40:31 +05:30
Elias Nahum
ba09fb9792 Sidebars improvement (#1787)
* Sidebars improvement
* Explicitly handle Android back button in code screen
* return null on getDerivedStateFromProps when no state changes needed
2018-06-26 01:17:53 +05:30
Elias Nahum
375c41dc3c
Merge branch 'release-1.9' 2018-06-25 15:31:46 -04:00
Harrison Healey
763016cf1a MM-11016 Updated redux to not error when failing to parse websocket origin (#1823) 2018-06-25 12:08:07 -04:00
Elias Nahum
2f12c0feea
Update mattermost-redux (#1792) 2018-06-22 18:07:19 -04:00
Elias Nahum
8aa4c1467d
Fixes entry point and keyboard lag (#1804)
* Fix entry when upgrading/installing and not logged

* Fix textInput lag by using rn fork

* Update RNFetchBlob
2018-06-22 16:19:51 -04:00
Harrison Healey
e19b6a08d3 Silence fetch errors caused by websocket action (#1797) 2018-06-21 18:17:29 -04:00
Elias Nahum
63a6a9ee91
Replacing fetch with RNFetchBlob (#1782) 2018-06-19 14:44:10 -04:00
Saturnino Abril
c4f36201b3 Fix memory leak on combined_system_message component (#1775)
* fix memory leak on combined_system_message component

* updated per comment

* move makeGetProfilesByIdsAndUsernames to mattermost-redux

* updated mattermost-redux
2018-06-18 15:46:15 -04:00
Harrison Healey
b8afc0e74c MM-10888 Hide parts of combined system messages that don't affect the current user (#1768)
* MM-10888 Hide parts of combined system messages that don't affect the current user

* Switch redux to release-5.0 branch
2018-06-14 09:04:58 -04:00
Elias Nahum
27b68c74dc
Fix roles Set issue and update device-info to not cache appVersion (#1753) 2018-06-08 17:42:04 -04:00
Jesse Hallam
3da114a827 update mattermost-redux (#1750) 2018-06-08 16:27:54 -04:00
Saturnino Abril
90adb0524b remove converted channel (into private) from "MoreChannels" screen of joinable channels (#1740) 2018-06-07 15:52:40 -04:00
Elias Nahum
02f0e7348d
Update mm-redux to use release-5.0 branch (#1738) 2018-06-07 14:48:42 -04:00
Saturnino Abril
78acd89222 [MM-10727 and MM-10755] Fix missing username and styling issue of combined system messages (#1719)
* fix missing username by supporting backward compatibility on `addedUsername` props when adding user to the channel or team

Signed-off-by: Saturnino Abril <saturnino.abril@gmail.com>

* updated mattermost-redux with related PR merged
2018-06-04 14:59:38 -04:00
Harrison Healey
861b46d605
MM-9547 Added CustomUrlSchemes option (#1718)
* MM-9547 Added CustomUrlSchemes option

* Switched mattermost-redux back to master
2018-06-04 10:25:34 -04:00
Elias Nahum
6179c031cd Fix long post detection (#1713) 2018-06-04 08:54:59 -04:00
Elias Nahum
cf3683272e Entry screen and Channel Loader improvements (perf part 4) (#1707)
* Entry screen and Channel Loader improvements

* Feedback review

* Removed unnecessary style array
2018-05-29 10:58:06 -04:00
Saturnino Abril
cd3da28e1f fix bundling failed with "mime-db" error (#1708)
Signed-off-by: Saturnino Abril <saturnino.abril@gmail.com>
2018-05-28 19:01:38 -04:00
Saturnino Abril
dd346dbd75 update redux to latest 1cc6009 (#1704)
Signed-off-by: Saturnino Abril <saturnino.abril@gmail.com>
2018-05-24 17:19:42 -04:00
Elias Nahum
e07a738dcd Remove orientation dependency (#1698)
* Remove orientation dependency

* Update NOTICES
2018-05-23 10:39:23 -04:00
Elias Nahum
b8f6160f73 Update Android JavaScriptCore in release mode (#1697) 2018-05-23 10:39:09 -04:00
Elias Nahum
b10c4abd73
Update fastlane (#1694) 2018-05-22 15:14:20 -04:00
Saturnino Abril
b94df667c4
updated mattermost-redux which fixes combined post which ignores other post types (#1684)
Signed-off-by: Saturnino Abril <saturnino.abril@gmail.com>
2018-05-21 05:51:25 +08:00
Chris Duarte
e8712f9199 Cold startup js refactor (#1598)
* Switch to SingleDex and remove all locales

* WIP Mattermost Start Component for lazy loading modules

* Add files changed for native modules

* Add Entry component and app global object

* dispatch setStatusBarHeight for iOS

* Update screen imports

* Include Entry screen

* Refactor app to mattermost.android.js

* Override unnecessary java files

* Fix minor issues in changes

* Display empty state based on user credentials

Also, add proper background theme for empty loading screen

* Add native module constant cache support

* Fix startup theme regression

* Add Keychain support for credentials

* Fix Orientation regression

*  Fix SharedExtension regression

* Emit NATIVE_APP_LAUNCHED across bridge only once during cold start

* Add iOS Support

* Revert to previous implementation of i18n

* Fix styling issues

* Include listener for SERVER_VERSION_CHANGED

* Add SafeAreaView in Entry screen

* Register deviceToken early, in order to get iOS PN Support

* Include StartTimeModule

* Add ReplyFromPush support and remove NATIVE_APP_LAUNCHED listener

* Package native constants in StartTimeModule and avoid bridge calls

* Fix check-style errors

* Code cleanup

* Rename StartTimeModule to InitializationModule

* Remove NavigationApplication

* Documentation and minor changes

* Account for app opening after SharedExtension

* Refactor getIntl to getTranslations

* Move native module constants into it's own forked repos

* Include FetchBlob and DeviceInfo forked repos
2018-05-18 17:13:00 -04:00
Elias Nahum
45c43413e8 Fix image preview zoom & scrolling jumps (#1677) 2018-05-16 09:38:56 -04:00
Saturnino Abril
7863ebc588
Include "id" to data for UserTypes actions - RECEIVED_PROFILE_IN_CHANNEL (#1676)
* Include "id" to data for UserTypes actions - RECEIVED_PROFILE_IN_CHANNEL

* update commit of mattermost-redux
2018-05-16 05:21:00 +08:00
Elias Nahum
23ca490525
Ability to upload other file types (#1662) 2018-05-11 18:05:49 -03:00
Elias Nahum
76e664cdae
Prevent duplicate flagged posts (#1670)
* Make sure date component keys are always different

* update mattermost-redux
2018-05-11 18:05:32 -03:00
Harrison Healey
4d506b6e4d
Moved getCurrentUserLocale to mattermost-redux (#1652) 2018-05-04 11:21:34 -04:00
Harrison Healey
3b33b51f11
MM-10360 Render OpenGraph previews for pages with an empty description (#1651)
* MM-10360 Render OpenGraph previews for pages with an empty description

* Updated mattermost-redux
2018-05-03 10:02:09 -04:00
Saturnino Abril
8a152ac1e7 convert test runner from mocha to jest (#1637) 2018-04-30 10:55:01 -04:00
Elias Nahum
80dd9366a1 Update Dependencies (#1641)
* Update dependencies including react-native

* Update react-native-circle-progress dependency

* Fix prop warnings and possible crashes
2018-04-27 17:49:09 -04:00
Harrison Healey
ffa62528f1 Improved performance while autolinking emails (#1632) 2018-04-26 19:34:22 -03:00
Elias Nahum
6553b948ad
Bump iOS build number to 97 (#1622)
* Downgrade to RN 0.52.3

* Bump iOS build number to 96

* Fix iOS permissions

* Update Android build to match iOS

* Bump iOS build number to 97
2018-04-25 18:39:20 -03:00
Jesús Espino
169341a54a MM-10298: Use last mattermost-redux version (#1620) 2018-04-25 13:00:31 -04:00
Harrison Healey
81b61b8bb7 MM-10180 Better handle characters after periods in URLs (#1603) 2018-04-24 18:12:52 -03:00
Elias Nahum
e748d8de33 Upgrade to RN 0.55.3 (#1600) 2018-04-19 17:00:12 -04:00
Elias Nahum
69a8df33f4
Update bad dependencies 2018-04-19 08:01:08 -03:00
Elias Nahum
033a0c15bd
Fix Downloads and previews (#1596)
* Fix downloads and previews

* Update react-native-doc-viewer dependency
2018-04-17 12:10:51 -03:00
Harrison Healey
1e79923e95 MM-9982 Switched to npm (#1592) 2018-04-17 10:56:30 -03:00