Compare commits

...

5 Commits

Author SHA1 Message Date
Harrison Healey
f5bd4bd752 Fixed MATTERMOST-MOBILE-ANDROID-87 (#1566) 2018-04-02 23:02:42 +03:00
Harrison Healey
868e4b8ad6 Fixed MATTERMOST-MOBILE-ANDROID-85 (#1565) 2018-04-02 23:02:12 +03:00
Elias Nahum
097244692c Fix iOS Share Extension Crash and Bump build and version numbers (1.7) (#1556)
* Fix iOS Extension crash

* Bump app version to 1.7.1 and build to 92
2018-03-29 16:17:19 +03:00
Harrison Healey
6a4b729bc1 MM-9940 Updated CommonMark to not use String.prototype.startsWith (#1542) 2018-03-28 22:50:36 +08:00
Harrison Healey
6d6735f016 Locked redux to 1.7 release branch (#1549) 2018-03-28 10:11:17 +03:00
10 changed files with 22 additions and 18 deletions

View File

@@ -111,8 +111,8 @@ android {
applicationId "com.mattermost.rnbeta"
minSdkVersion 21
targetSdkVersion 23
versionCode 91
versionName "1.7.0"
versionCode 92
versionName "1.7.1"
multiDexEnabled true
ndk {
abiFilters "armeabi-v7a", "x86"

View File

@@ -361,7 +361,7 @@ export default class Markdown extends PureComponent {
if (this.props.isEdited) {
const editIndicatorNode = new Node('edited_indicator');
if (['heading', 'paragraph'].includes(ast.lastChild.type)) {
if (ast.lastChild && ['heading', 'paragraph'].includes(ast.lastChild.type)) {
ast.lastChild.appendChild(editIndicatorNode);
} else {
const node = new Node('paragraph');

View File

@@ -13,7 +13,7 @@ import {ViewTypes} from 'app/constants';
function displayName(state = '', action) {
switch (action.type) {
case ViewTypes.SET_CHANNEL_DISPLAY_NAME:
return action.displayName;
return action.displayName || '';
default:
return state;
}

View File

@@ -82,5 +82,5 @@ export const encodeHeaderURIStringToUTF8 = (string) => {
};
export const getAllowedServerMaxFileSize = (config) => {
return config.MaxFileSize ? parseInt(config.MaxFileSize, 10) : DEFAULT_SERVER_MAX_FILE_SIZE;
return config && config.MaxFileSize ? parseInt(config.MaxFileSize, 10) : DEFAULT_SERVER_MAX_FILE_SIZE;
};

View File

@@ -19,7 +19,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.7.0</string>
<string>1.7.1</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleURLTypes</key>
@@ -34,7 +34,7 @@
</dict>
</array>
<key>CFBundleVersion</key>
<string>91</string>
<string>92</string>
<key>ITSAppUsesNonExemptEncryption</key>
<false/>
<key>LSRequiresIPhoneOS</key>
@@ -54,6 +54,8 @@
</dict>
</dict>
</dict>
<key>NSAppleMusicUsageDescription</key>
<string>Let Mattermost access your Media files</string>
<key>NSBluetoothPeripheralUsageDescription</key>
<string>Share post data accross devices with Mattermost</string>
<key>NSCalendarsUsageDescription</key>
@@ -68,8 +70,6 @@
<string>Upload Photos and Videos to your Mattermost instance or save them to your device</string>
<key>NSSpeechRecognitionUsageDescription</key>
<string>Send voice messages to your Mattermost instance</string>
<key>NSAppleMusicUsageDescription</key>
<string>Let Mattermost access your Media files</string>
<key>UIAppFonts</key>
<array>
<string>Entypo.ttf</string>

View File

@@ -21,9 +21,9 @@
<key>CFBundlePackageType</key>
<string>XPC!</string>
<key>CFBundleShortVersionString</key>
<string>1.7.0</string>
<string>1.7.1</string>
<key>CFBundleVersion</key>
<string>91</string>
<string>92</string>
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>

View File

@@ -15,10 +15,10 @@
<key>CFBundlePackageType</key>
<string>BNDL</string>
<key>CFBundleShortVersionString</key>
<string>1.7.0</string>
<string>1.7.1</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>91</string>
<string>92</string>
</dict>
</plist>

View File

@@ -15,7 +15,7 @@
"fuse.js": "^3.2.0",
"intl": "1.2.5",
"jail-monkey": "0.2.0",
"mattermost-redux": "mattermost/mattermost-redux",
"mattermost-redux": "mattermost/mattermost-redux#rn-release-1.7",
"prop-types": "15.6.0",
"react": "16.2.0",
"react-intl": "2.4.0",

View File

@@ -73,8 +73,12 @@ export default class SharedApp extends PureComponent {
};
userIsLoggedIn = () => {
return Boolean(this.entities && this.entities.general && this.entities.general.credentials &&
this.entities.general.credentials.token && this.entities.general.credentials.url);
if (this.entities && this.entities.general && this.entities.general.credentials &&
this.entities.general.credentials.token && this.entities.general.credentials.url) {
return true;
}
return false;
};
render() {

View File

@@ -1774,7 +1774,7 @@ commonmark-react-renderer@hmhealey/commonmark-react-renderer:
commonmark@hmhealey/commonmark.js:
version "0.28.0"
resolved "https://codeload.github.com/hmhealey/commonmark.js/tar.gz/bcd754c640ed8192fa959f2416f183acf9e1cfaf"
resolved "https://codeload.github.com/hmhealey/commonmark.js/tar.gz/7c20ebc1b60f5bb56c1ed9ad3239f53293278d5c"
dependencies:
entities "~ 1.1.1"
mdurl "~ 1.0.1"
@@ -4094,7 +4094,7 @@ makeerror@1.0.x:
dependencies:
tmpl "1.0.x"
mattermost-redux@mattermost/mattermost-redux:
mattermost-redux@mattermost/mattermost-redux#rn-release-1.7:
version "1.2.0"
resolved "https://codeload.github.com/mattermost/mattermost-redux/tar.gz/0ad40c2abc2900277a279316790f180dfe4ad785"
dependencies: