Add discussions for channels
This commit is contained in:
parent
82b306b95a
commit
7feb5094fc
|
@ -188,8 +188,7 @@ const DiscussionMessagesView = ({ navigation, route }) => {
|
||||||
renderItem={renderItem}
|
renderItem={renderItem}
|
||||||
// eslint-disable-next-line react/prop-types
|
// eslint-disable-next-line react/prop-types
|
||||||
keyExtractor={item => item.msg}
|
keyExtractor={item => item.msg}
|
||||||
// style={[styles.list, { backgroundColor: themes[theme].backgroundColor }]}
|
style={{ backgroundColor: themes[theme].backgroundColor }}
|
||||||
// contentContainerStyle={styles.contentContainer}
|
|
||||||
onEndReachedThreshold={0.5}
|
onEndReachedThreshold={0.5}
|
||||||
maxToRenderPerBatch={5}
|
maxToRenderPerBatch={5}
|
||||||
windowSize={10}
|
windowSize={10}
|
||||||
|
@ -197,7 +196,7 @@ const DiscussionMessagesView = ({ navigation, route }) => {
|
||||||
removeClippedSubviews={isIOS}
|
removeClippedSubviews={isIOS}
|
||||||
ItemSeparatorComponent={List.Separator}
|
ItemSeparatorComponent={List.Separator}
|
||||||
ListFooterComponent={loading ? <ActivityIndicator theme={theme} /> : null}
|
ListFooterComponent={loading ? <ActivityIndicator theme={theme} /> : null}
|
||||||
scrollIndicatorInsets={{ right: 1 }} // https://github.com/facebook/react-native/issues/26610#issuecomment-539843444
|
scrollIndicatorInsets={{ right: 1 }}
|
||||||
/>
|
/>
|
||||||
</SafeAreaView>
|
</SafeAreaView>
|
||||||
);
|
);
|
||||||
|
|
|
@ -974,7 +974,7 @@ class RoomActionsView extends React.Component {
|
||||||
)
|
)
|
||||||
: null}
|
: null}
|
||||||
|
|
||||||
{['c', 'p'].includes(t) && !prid
|
{['c', 'p', 'd'].includes(t) && !prid
|
||||||
? (
|
? (
|
||||||
<>
|
<>
|
||||||
<List.Item
|
<List.Item
|
||||||
|
|
Loading…
Reference in New Issue