diff --git a/native/components/thread-icon.react.js b/native/components/thread-icon.react.js
index ca31a9e44..85a309def 100644
--- a/native/components/thread-icon.react.js
+++ b/native/components/thread-icon.react.js
@@ -1,40 +1,42 @@
// @flow
import * as React from 'react';
import { StyleSheet } from 'react-native';
import EntypoIcon from 'react-native-vector-icons/Entypo';
import MaterialIcon from 'react-native-vector-icons/MaterialIcons';
import { threadTypes, type ThreadType } from 'lib/types/thread-types';
type Props = {|
+threadType: ThreadType,
+color: string,
|};
function ThreadIcon(props: Props) {
const { threadType, color } = props;
if (threadType === threadTypes.CHAT_SECRET) {
return ;
+ } else if (threadType === threadTypes.PRIVATE) {
+ return ;
} else if (threadType === threadTypes.SIDEBAR) {
return (
);
} else if (threadType === threadTypes.PERSONAL) {
return ;
} else {
return ;
}
}
const styles = StyleSheet.create({
sidebarIcon: {
paddingTop: 2,
},
});
export default ThreadIcon;
diff --git a/native/components/thread-visibility.react.js b/native/components/thread-visibility.react.js
index 9dd71bebb..b4e55e689 100644
--- a/native/components/thread-visibility.react.js
+++ b/native/components/thread-visibility.react.js
@@ -1,45 +1,52 @@
// @flow
import * as React from 'react';
import { View, Text, StyleSheet } from 'react-native';
import Icon from 'react-native-vector-icons/MaterialIcons';
import { threadTypes, type ThreadType } from 'lib/types/thread-types';
type Props = {|
+threadType: ThreadType,
+color: string,
|};
function ThreadVisibility(props: Props) {
const { threadType, color } = props;
const visLabelStyle = [styles.visibilityLabel, { color }];
if (threadType === threadTypes.CHAT_SECRET) {
return (
Secret
);
+ } else if (threadType === threadTypes.PRIVATE) {
+ return (
+
+
+ Private
+
+ );
} else {
return (
Open
);
}
}
const styles = StyleSheet.create({
container: {
alignItems: 'center',
flexDirection: 'row',
},
visibilityLabel: {
fontSize: 16,
fontWeight: 'bold',
paddingLeft: 4,
},
});
export default ThreadVisibility;