diff --git a/android/app/build.gradle b/android/app/build.gradle
index c5d9077b3..9a13259d6 100644
--- a/android/app/build.gradle
+++ b/android/app/build.gradle
@@ -113,7 +113,7 @@ android {
applicationId "com.mattermost.rnbeta"
minSdkVersion 21
targetSdkVersion 23
- versionCode 107
+ versionCode 108
versionName "1.9.0"
ndk {
abiFilters "armeabi-v7a", "x86"
diff --git a/app/components/post_textbox/components/typing/typing.js b/app/components/post_textbox/components/typing/typing.js
index 1f4820e4e..145a144a8 100644
--- a/app/components/post_textbox/components/typing/typing.js
+++ b/app/components/post_textbox/components/typing/typing.js
@@ -2,6 +2,7 @@ import React, {PureComponent} from 'react';
import PropTypes from 'prop-types';
import {
Animated,
+ Platform,
Text,
} from 'react-native';
@@ -94,7 +95,14 @@ const getStyleSheet = makeStyleSheetFromTheme((theme) => {
paddingLeft: 10,
paddingTop: 3,
fontSize: 11,
- marginBottom: 5,
+ ...Platform.select({
+ android: {
+ marginBottom: 5,
+ },
+ ios: {
+ marginBottom: 2,
+ },
+ }),
color: theme.centerChannelColor,
backgroundColor: 'transparent',
},
diff --git a/app/components/search_bar/search_bar.android.js b/app/components/search_bar/search_bar.android.js
index 17dac6e79..f0ecda7c2 100644
--- a/app/components/search_bar/search_bar.android.js
+++ b/app/components/search_bar/search_bar.android.js
@@ -70,11 +70,6 @@ export default class SearchBarAndroid extends PureComponent {
isFocused: false,
};
}
- componentWillReceiveProps(nextProps) {
- if (this.state.value !== nextProps.value) {
- this.setState({value: nextProps.value});
- }
- }
cancel = () => {
this.onCancelButtonPress();
@@ -153,10 +148,12 @@ export default class SearchBarAndroid extends PureComponent {
} = this.props;
const {isFocused} = this.state;
- const inputNoBackground = {
- ...inputStyle,
- };
- Reflect.deleteProperty(inputNoBackground, 'backgroundColor');
+ const {
+ backgroundColor: bgColor, //eslint-disable-line no-unused-vars
+ ...otherStyles
+ } = inputStyle;
+
+ const inputNoBackground = otherStyles;
let inputColor = styles.searchBarInput.backgroundColor;
if (inputStyle) {
diff --git a/app/screens/entry/entry.js b/app/screens/entry/entry.js
index 9c4622cee..afda50b5c 100644
--- a/app/screens/entry/entry.js
+++ b/app/screens/entry/entry.js
@@ -227,7 +227,7 @@ export default class Entry extends PureComponent {
navigator: this.props.navigator,
};
- return wrapWithContextProvider(ChannelScreen, true)(props);
+ return wrapWithContextProvider(ChannelScreen, false)(props);
};
render() {
diff --git a/app/screens/notification/notification.js b/app/screens/notification/notification.js
index 8efa23e59..1a949e018 100644
--- a/app/screens/notification/notification.js
+++ b/app/screens/notification/notification.js
@@ -92,8 +92,28 @@ export default class Notification extends PureComponent {
return icon;
};
- getNotificationTitle = (titleText) => {
+ getNotificationTitle = (notification) => {
const {channel} = this.props;
+ const {message, data} = notification;
+
+ if (data.version === 'v2') {
+ if (data.channel_name) {
+ return (
+
+ {data.channel_name}
+
+ );
+ }
+
+ return null;
+ }
+
+ const msg = message.split(':');
+ const titleText = msg.shift();
let title = (
+
+
+
{postList}
@@ -407,8 +410,6 @@ const getStyleSheet = makeStyleSheetFromTheme((theme) => {
header: {
alignItems: 'center',
backgroundColor: theme.centerChannelBg,
- borderBottomColor: changeOpacity(theme.centerChannelColor, 0.2),
- borderBottomWidth: 1,
borderTopLeftRadius: 6,
borderTopRightRadius: 6,
flexDirection: 'row',
@@ -416,6 +417,13 @@ const getStyleSheet = makeStyleSheetFromTheme((theme) => {
paddingRight: 16,
width: '100%',
},
+ dividerContainer: {
+ backgroundColor: theme.centerChannelBg,
+ },
+ divider: {
+ backgroundColor: changeOpacity(theme.centerChannelColor, 0.2),
+ height: 1,
+ },
close: {
justifyContent: 'center',
height: 44,
diff --git a/app/store/index.js b/app/store/index.js
index e49da1589..9c1b9983b 100644
--- a/app/store/index.js
+++ b/app/store/index.js
@@ -38,9 +38,14 @@ const channelSetTransform = [
'channelsInTeam',
];
+const rolesSetTransform = [
+ 'pending',
+];
+
const setTransforms = [
...usersSetTransform,
...channelSetTransform,
+ ...rolesSetTransform,
];
export default function configureAppStore(initialState) {
diff --git a/ios/Mattermost.xcodeproj/project.pbxproj b/ios/Mattermost.xcodeproj/project.pbxproj
index 7236dad01..3aa2fc6b9 100644
--- a/ios/Mattermost.xcodeproj/project.pbxproj
+++ b/ios/Mattermost.xcodeproj/project.pbxproj
@@ -2516,7 +2516,7 @@
CODE_SIGN_ENTITLEMENTS = Mattermost/Mattermost.entitlements;
CODE_SIGN_IDENTITY = "iPhone Developer";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
- CURRENT_PROJECT_VERSION = 107;
+ CURRENT_PROJECT_VERSION = 108;
DEAD_CODE_STRIPPING = NO;
DEVELOPMENT_TEAM = UQ8HT4Q2XM;
ENABLE_BITCODE = NO;
@@ -2566,7 +2566,7 @@
CODE_SIGN_ENTITLEMENTS = Mattermost/Mattermost.entitlements;
CODE_SIGN_IDENTITY = "iPhone Developer";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
- CURRENT_PROJECT_VERSION = 107;
+ CURRENT_PROJECT_VERSION = 108;
DEAD_CODE_STRIPPING = NO;
DEVELOPMENT_TEAM = UQ8HT4Q2XM;
ENABLE_BITCODE = NO;
diff --git a/ios/Mattermost/Info.plist b/ios/Mattermost/Info.plist
index ac8d1395e..82cc61ce8 100644
--- a/ios/Mattermost/Info.plist
+++ b/ios/Mattermost/Info.plist
@@ -34,7 +34,7 @@
CFBundleVersion
- 107
+ 108
ITSAppUsesNonExemptEncryption
LSRequiresIPhoneOS
diff --git a/ios/MattermostShare/Info.plist b/ios/MattermostShare/Info.plist
index e820a274a..4bbd49910 100644
--- a/ios/MattermostShare/Info.plist
+++ b/ios/MattermostShare/Info.plist
@@ -23,7 +23,7 @@
CFBundleShortVersionString
1.9.0
CFBundleVersion
- 107
+ 108
NSAppTransportSecurity
NSAllowsArbitraryLoads
diff --git a/ios/MattermostTests/Info.plist b/ios/MattermostTests/Info.plist
index 17064944a..83a4fc3bc 100644
--- a/ios/MattermostTests/Info.plist
+++ b/ios/MattermostTests/Info.plist
@@ -19,6 +19,6 @@
CFBundleSignature
????
CFBundleVersion
- 107
+ 108
diff --git a/package-lock.json b/package-lock.json
index 4e0522550..a947184eb 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -9878,8 +9878,8 @@
}
},
"mattermost-redux": {
- "version": "github:mattermost/mattermost-redux#2ef52763c82ca1ad338e5a4dc3dc557a0ecfd528",
- "from": "github:mattermost/mattermost-redux#2ef52763c82ca1ad338e5a4dc3dc557a0ecfd528",
+ "version": "github:mattermost/mattermost-redux#b81b6c647b226554cb0d410578562e5f876f4d9b",
+ "from": "github:mattermost/mattermost-redux#b81b6c647b226554cb0d410578562e5f876f4d9b",
"requires": {
"deep-equal": "1.0.1",
"eslint-plugin-header": "1.2.0",
@@ -14427,8 +14427,8 @@
}
},
"react-native-device-info": {
- "version": "github:enahum/react-native-device-info#27ecfd4a59341bf6ed71d11203d914067070e8df",
- "from": "react-native-device-info@github:enahum/react-native-device-info#27ecfd4a59341bf6ed71d11203d914067070e8df"
+ "version": "github:enahum/react-native-device-info#a7bb3cff1086780b2c791a3e43e5b826fdf3ab11",
+ "from": "github:enahum/react-native-device-info#a7bb3cff1086780b2c791a3e43e5b826fdf3ab11"
},
"react-native-dismiss-keyboard": {
"version": "1.0.0",
diff --git a/package.json b/package.json
index 478977ef6..b28577986 100644
--- a/package.json
+++ b/package.json
@@ -15,7 +15,7 @@
"intl": "1.2.5",
"jail-monkey": "1.0.0",
"jsc-android": "216113.0.3",
- "mattermost-redux": "github:mattermost/mattermost-redux#2ef52763c82ca1ad338e5a4dc3dc557a0ecfd528",
+ "mattermost-redux": "github:mattermost/mattermost-redux#b81b6c647b226554cb0d410578562e5f876f4d9b",
"mime-db": "1.33.0",
"prop-types": "15.6.1",
"react": "16.3.2",
@@ -26,7 +26,7 @@
"react-native-button": "2.3.0",
"react-native-circular-progress": "0.2.0",
"react-native-cookies": "3.2.0",
- "react-native-device-info": "enahum/react-native-device-info.git#27ecfd4a59341bf6ed71d11203d914067070e8df",
+ "react-native-device-info": "enahum/react-native-device-info.git#a7bb3cff1086780b2c791a3e43e5b826fdf3ab11",
"react-native-doc-viewer": "2.7.8",
"react-native-document-picker": "2.1.0",
"react-native-drawer": "2.5.0",
diff --git a/share_extension/android/extension_channels/extension_channels.js b/share_extension/android/extension_channels/extension_channels.js
index 83014092c..940880a70 100644
--- a/share_extension/android/extension_channels/extension_channels.js
+++ b/share_extension/android/extension_channels/extension_channels.js
@@ -129,21 +129,23 @@ export default class ExtensionTeam extends PureComponent {
}
return (
-
+
+ {this.renderSearchBar(styles)}
+
+
);
};
@@ -188,7 +190,6 @@ export default class ExtensionTeam extends PureComponent {
titleCancelColor={defaultTheme.centerChannelColor}
onChangeText={this.handleSearch}
autoCapitalize='none'
- value={this.state.term}
/>
);