From 7feb5094fc8ba11adf80b82ab1310a0878a280ac Mon Sep 17 00:00:00 2001 From: Gerzon Z Date: Sun, 22 Aug 2021 21:51:22 -0400 Subject: [PATCH] Add discussions for channels --- app/views/DiscussionMessagesView.js | 5 ++--- app/views/RoomActionsView/index.js | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/app/views/DiscussionMessagesView.js b/app/views/DiscussionMessagesView.js index 87a6755f..6069419a 100644 --- a/app/views/DiscussionMessagesView.js +++ b/app/views/DiscussionMessagesView.js @@ -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 ? : null} - scrollIndicatorInsets={{ right: 1 }} // https://github.com/facebook/react-native/issues/26610#issuecomment-539843444 + scrollIndicatorInsets={{ right: 1 }} /> ); diff --git a/app/views/RoomActionsView/index.js b/app/views/RoomActionsView/index.js index 44ffe9de..585f6237 100644 --- a/app/views/RoomActionsView/index.js +++ b/app/views/RoomActionsView/index.js @@ -974,7 +974,7 @@ class RoomActionsView extends React.Component { ) : null} - {['c', 'p'].includes(t) && !prid + {['c', 'p', 'd'].includes(t) && !prid ? ( <>