Skip to content

Commit deb81dd

Browse files
committed
fix: sync up changes
1 parent 0e01b3d commit deb81dd

File tree

2 files changed

+20
-18
lines changed

2 files changed

+20
-18
lines changed

package/src/components/Channel/Channel.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1658,8 +1658,8 @@ const ChannelWithContext = (props: PropsWithChildren<ChannelPropsWithContext>) =
16581658
() => ({
16591659
bottomInset,
16601660
bottomSheetRef,
1661-
closePicker,
1662-
openPicker,
1661+
closePicker: () => closePicker(bottomSheetRef),
1662+
openPicker: () => openPicker(bottomSheetRef),
16631663
topInset,
16641664
}),
16651665
[bottomInset, bottomSheetRef, closePicker, openPicker, topInset],

package/src/components/MessageInput/MessageInput.tsx

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -675,24 +675,26 @@ const MessageInputWithContext = (props: MessageInputPropsWithContext) => {
675675
<View style={[styles.suggestionsListContainer, { bottom: height }, suggestionListContainer]}>
676676
<AutoCompleteSuggestionList />
677677
</View>
678-
679-
{selectedPicker && AttachmentPickerSelectionBar && isImageMediaLibraryAvailable() ? (
680-
<View
681-
style={[
682-
{
683-
backgroundColor: white_smoke,
684-
height:
685-
attachmentPickerBottomSheetHeight + attachmentSelectionBarHeight - bottomInset,
686-
},
687-
attachmentSelectionBar,
688-
]}
689-
>
690-
<AttachmentPickerSelectionBar />
691-
</View>
692-
) : null}
693678
{isImageMediaLibraryAvailable() ? (
694-
<AttachmentPicker ref={bottomSheetRef} {...attachmentPickerProps} />
679+
<>
680+
{selectedPicker && AttachmentPickerSelectionBar ? (
681+
<View
682+
style={[
683+
{
684+
backgroundColor: white_smoke,
685+
height:
686+
attachmentPickerBottomSheetHeight + attachmentSelectionBarHeight - bottomInset,
687+
},
688+
attachmentSelectionBar,
689+
]}
690+
>
691+
<AttachmentPickerSelectionBar />
692+
</View>
693+
) : null}
694+
<AttachmentPicker ref={bottomSheetRef} {...attachmentPickerProps} />
695+
</>
695696
) : null}
697+
696698
{showPollCreationDialog ? (
697699
<View style={{ alignItems: 'center', flex: 1, justifyContent: 'center' }}>
698700
<Modal

0 commit comments

Comments
 (0)