Open-source Grok Bot alternative for named AI teammates. Local-first desktop, web, and mobile clients with per-bot tools, instructions, and memory. Independent fork of T3 Code.
fix(mobile): threads load snapped to bottom on iOS (#4689)
Theo Browne476d69cd1d5d
diff --git a/patches/@[email protected] b/patches/@[email protected]index 686ea249b..8059fbb5f 100644--- a/patches/@[email protected]+++ b/patches/@[email protected]@@ -204,7 +204,7 @@ index 72d3f59..435a5fc 100644* Number of columns to render items in.* @default 1diff --git a/react-native.js b/react-native.js-index 8d4ff89..18f0d62 100644+index 8d4ff89..003b2f7 100644--- a/react-native.js+++ b/react-native.js@@ -1195,7 +1195,7 @@ function setInitialRenderState(ctx, {@@ -510,6 +510,15 @@ index 8d4ff89..18f0d62 100644onRefresh,onScroll: onScrollProp,onStartReached,+@@ -6577,7 +6729,7 @@ var LegendListInner = typedForwardRef(function LegendListInner2(props, forwarded+ const combinedRef = useCombinedRef(refScroller, refScrollView);+ const keyExtractor = keyExtractorProp != null ? keyExtractorProp : ((_item, index) => index.toString());+ const stickyHeaderIndices = stickyHeaderIndicesProp;+- const contentInsetEndAdjustmentResolved = Platform.OS === "web" ? contentInsetEndAdjustment : void 0;++ const contentInsetEndAdjustmentResolved = contentInsetEndAdjustment;+ const previousContentInsetEndAdjustmentRef = React2.useRef(contentInsetEndAdjustmentResolved);+ const alwaysRenderIndices = React2.useMemo(() => {+ const indices = getAlwaysRenderIndices(alwaysRender, dataProp, keyExtractor, anchoredEndSpace == null ? void 0 : anchoredEndSpace.anchorIndex);@@ -6710,6 +6862,7 @@ var LegendListInner = typedForwardRef(function LegendListInner2(props, forwardedcontentContainerAlignItems: contentContainerStyle.alignItems,contentInset,@@ -554,7 +563,7 @@ index 8d4ff89..18f0d62 100644recycleItems,refreshControl: refreshControlElement ? stylePaddingTopState > 0 ? React2__namespace.cloneElement(refreshControlElement, {diff --git a/react-native.mjs b/react-native.mjs-index 2e96ca7..6e8913e 100644+index 2e96ca7..fc88d4b 100644--- a/react-native.mjs+++ b/react-native.mjs@@ -1174,7 +1174,7 @@ function setInitialRenderState(ctx, {@@ -860,6 +869,15 @@ index 2e96ca7..6e8913e 100644onRefresh,onScroll: onScrollProp,onStartReached,+@@ -6556,7 +6708,7 @@ var LegendListInner = typedForwardRef(function LegendListInner2(props, forwarded+ const combinedRef = useCombinedRef(refScroller, refScrollView);+ const keyExtractor = keyExtractorProp != null ? keyExtractorProp : ((_item, index) => index.toString());+ const stickyHeaderIndices = stickyHeaderIndicesProp;+- const contentInsetEndAdjustmentResolved = Platform.OS === "web" ? contentInsetEndAdjustment : void 0;++ const contentInsetEndAdjustmentResolved = contentInsetEndAdjustment;+ const previousContentInsetEndAdjustmentRef = useRef(contentInsetEndAdjustmentResolved);+ const alwaysRenderIndices = useMemo(() => {+ const indices = getAlwaysRenderIndices(alwaysRender, dataProp, keyExtractor, anchoredEndSpace == null ? void 0 : anchoredEndSpace.anchorIndex);@@ -6689,6 +6841,7 @@ var LegendListInner = typedForwardRef(function LegendListInner2(props, forwardedcontentContainerAlignItems: contentContainerStyle.alignItems,contentInset,diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 733aaa734..37596864b 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -72,7 +72,7 @@ patchedDependencies:'@effect/[email protected]': a607339aab944136a084a05f159aa0f5a69776934d4b835dab8f9992f1c13425'@expo/[email protected]': 8cb08b5bb7051ed9d2dbe46a2c293c5a1e17f1bd6ddf30de27909e18c921ff46'@ff-labs/[email protected]': 2b16019ce7ab61aec6478dd02f79ef468cc1d5c51e9d00764f7d2ab8167210c8- '@legendapp/[email protected]': 45e4cbcbeeca1b628b8480869374d7cbc77e3fbfa97ee0107a0d72c3c4a5d7f3+ '@legendapp/[email protected]': 9203ec3db86574a31e157a265cefd8997b259cc420a0c4c61c580c80ed8cf78d'@pierre/[email protected]': 7cb6da88544119adda056b2f46f43956f99326227732da0b345081e285a6c53a'@react-native-menu/[email protected]': 5ea3ae4bf1d9baf5443b65c269bb09621c27a68d556f713778f37b1e8d46aaae'@react-navigation/[email protected]': c7fc101b78d434904425e5a24c22fb0042298dec6f807250486e784f3c717273@@ -211,7 +211,7 @@ importers:version: 56.0.18(3cdc0dde9f93166d952f1e1bd0cb25c0)'@legendapp/list':specifier: 3.2.0- version: 3.2.0(patch_hash=45e4cbcbeeca1b628b8480869374d7cbc77e3fbfa97ee0107a0d72c3c4a5d7f3)([email protected]([email protected]))([email protected](@babel/[email protected])(@react-native/[email protected](@babel/[email protected])([email protected])([email protected]))(@types/[email protected])([email protected])([email protected])([email protected]))([email protected])+ version: 3.2.0(patch_hash=9203ec3db86574a31e157a265cefd8997b259cc420a0c4c61c580c80ed8cf78d)([email protected]([email protected]))([email protected](@babel/[email protected])(@react-native/[email protected](@babel/[email protected])([email protected])([email protected]))(@types/[email protected])([email protected])([email protected])([email protected]))([email protected])'@noble/curves':specifier: 'catalog:'version: 1.9.1@@ -543,7 +543,7 @@ importers:version: 0.9.0'@legendapp/list':specifier: 3.2.0- version: 3.2.0(patch_hash=45e4cbcbeeca1b628b8480869374d7cbc77e3fbfa97ee0107a0d72c3c4a5d7f3)([email protected]([email protected]))([email protected])+ version: 3.2.0(patch_hash=9203ec3db86574a31e157a265cefd8997b259cc420a0c4c61c580c80ed8cf78d)([email protected]([email protected]))([email protected])'@lexical/react':specifier: ^0.41.0@@ -12976,7 +12976,7 @@ snapshots:dependencies:jsbi: 4.3.2- '@legendapp/[email protected](patch_hash=45e4cbcbeeca1b628b8480869374d7cbc77e3fbfa97ee0107a0d72c3c4a5d7f3)([email protected]([email protected]))([email protected](@babel/[email protected])(@react-native/[email protected](@babel/[email protected])([email protected])([email protected]))(@types/[email protected])([email protected])([email protected])([email protected]))([email protected])':+ '@legendapp/[email protected](patch_hash=9203ec3db86574a31e157a265cefd8997b259cc420a0c4c61c580c80ed8cf78d)([email protected]([email protected]))([email protected](@babel/[email protected])(@react-native/[email protected](@babel/[email protected])([email protected])([email protected]))(@types/[email protected])([email protected])([email protected])([email protected]))([email protected])':dependencies:react: 19.2.3use-sync-external-store: 1.6.0([email protected])@@ -12984,7 +12984,7 @@ snapshots:react-dom: 19.2.3([email protected])react-native: 0.85.3(@babel/[email protected])(@react-native/[email protected](@babel/[email protected])([email protected])([email protected]))(@types/[email protected])([email protected])([email protected])([email protected])- '@legendapp/[email protected](patch_hash=45e4cbcbeeca1b628b8480869374d7cbc77e3fbfa97ee0107a0d72c3c4a5d7f3)([email protected]([email protected]))([email protected])':+ '@legendapp/[email protected](patch_hash=9203ec3db86574a31e157a265cefd8997b259cc420a0c4c61c580c80ed8cf78d)([email protected]([email protected]))([email protected])':dependencies:react: 19.2.6use-sync-external-store: 1.6.0([email protected])