Add discussions for channels

This commit is contained in:
Gerzon Z 2021-08-22 21:51:22 -04:00
parent 82b306b95a
commit 7feb5094fc
2 changed files with 3 additions and 4 deletions

View File

@ -188,8 +188,7 @@ const DiscussionMessagesView = ({ navigation, route }) => {
renderItem={renderItem}
// eslint-disable-next-line react/prop-types
keyExtractor={item => item.msg}
// style={[styles.list, { backgroundColor: themes[theme].backgroundColor }]}
// contentContainerStyle={styles.contentContainer}
style={{ backgroundColor: themes[theme].backgroundColor }}
onEndReachedThreshold={0.5}
maxToRenderPerBatch={5}
windowSize={10}
@ -197,7 +196,7 @@ const DiscussionMessagesView = ({ navigation, route }) => {
removeClippedSubviews={isIOS}
ItemSeparatorComponent={List.Separator}
ListFooterComponent={loading ? <ActivityIndicator theme={theme} /> : null}
scrollIndicatorInsets={{ right: 1 }} // https://github.com/facebook/react-native/issues/26610#issuecomment-539843444
scrollIndicatorInsets={{ right: 1 }}
/>
</SafeAreaView>
);

View File

@ -974,7 +974,7 @@ class RoomActionsView extends React.Component {
)
: null}
{['c', 'p'].includes(t) && !prid
{['c', 'p', 'd'].includes(t) && !prid
? (
<>
<List.Item