Fix sidebar selection and file return
This commit is contained in:
1 parent
43b9724418
commit
bf00c7e8a6
2 files changed
+2
-5
No files matched your search
@@ -727,10 +727,6 @@ export function ThreadFileScreen() {
|
||||
accessibilityLabel="Return to chat"
|
||||
icon="chevron.left"
|
||||
onPress={() => {
|
||||
if (router.canGoBack()) {
|
||||
router.back();
|
||||
return;
|
||||
}
|
||||
router.replace(buildThreadRoutePath({ environmentId, threadId }));
|
||||
}}
|
||||
/>
|
||||
|
||||
@@ -399,6 +399,7 @@ export function ThreadNavigationSidebar(props: {
|
||||
const selectedMutedColor = IOS_SELECTED_MUTED_FOREGROUND;
|
||||
const pressedBackgroundColor = useThemeColor("--color-subtle");
|
||||
const listThemeKey = `${colorScheme}:${String(backgroundColor)}:${String(selectedBackgroundColor)}`;
|
||||
const listExtraData = `${listThemeKey}:${props.selectedThreadKey ?? ""}`;
|
||||
const headerFadeColor = String(backgroundColor);
|
||||
const topListInset = insets.top + SIDEBAR_STICKY_HEADER_HEIGHT - 6;
|
||||
const handleSwipeableWillOpen = useCallback((methods: SwipeableMethods) => {
|
||||
@@ -517,7 +518,7 @@ export function ThreadNavigationSidebar(props: {
|
||||
<LegendList
|
||||
data={listItems}
|
||||
estimatedItemSize={58}
|
||||
extraData={listThemeKey}
|
||||
extraData={listExtraData}
|
||||
getItemType={(item) => item.kind}
|
||||
keyExtractor={(item) => item.key}
|
||||
renderItem={renderListItem}
|
||||
|
||||
Reference in new issue
Block a user