diff --git a/native/chat/message-list-thread-search.react.js b/native/chat/message-list-thread-search.react.js --- a/native/chat/message-list-thread-search.react.js +++ b/native/chat/message-list-thread-search.react.js @@ -40,7 +40,7 @@ const styles = useStyles(unboundStyles); const [userListItems, nonFriends] = React.useMemo(() => { - const nonFriendsSet = new Set(); + const nonFriendsSet = new Set(); if (userInfoInputArray.length > 0) { return [userSearchResults, nonFriendsSet]; } diff --git a/native/chat/thread-screen-pruner.react.js b/native/chat/thread-screen-pruner.react.js --- a/native/chat/thread-screen-pruner.react.js +++ b/native/chat/thread-screen-pruner.react.js @@ -66,7 +66,7 @@ }, [navContext]); const inStackThreadIDs = React.useMemo(() => { - const threadIDs = new Set(); + const threadIDs = new Set(); if (!chatRouteState) { return threadIDs; } diff --git a/native/components/node-height-measurer.react.js b/native/components/node-height-measurer.react.js --- a/native/components/node-height-measurer.react.js +++ b/native/components/node-height-measurer.react.js @@ -92,8 +92,14 @@ mergeItemWithHeight, initialMeasuredHeights, } = props; - const unmeasurableItems = new Map(); - const measurableItems = new Map(); + const unmeasurableItems = new Map< + string, + MergedItemPair, + >(); + const measurableItems = new Map< + string, + MergedItemPair, + >(); const measuredHeights = initialMeasuredHeights ? new Map(initialMeasuredHeights) : new Map(); @@ -154,7 +160,7 @@ const { listData, itemToMeasureKey, itemToDummy } = props; - const toMeasure = new Map(); + const toMeasure = new Map(); if (listData) { for (const item of listData) { const measureKey = itemToMeasureKey(item); @@ -353,8 +359,8 @@ measurableItemsChanged || unmeasurableItemsChanged ) { - const currentMeasurableItems = new Map(); - const currentUnmeasurableItems = new Map(); + const currentMeasurableItems = new Map(); + const currentUnmeasurableItems = new Map(); if (listData) { for (const item of listData) { const id = itemToID(item); diff --git a/native/input/input-state-container.react.js b/native/input/input-state-container.react.js --- a/native/input/input-state-container.react.js +++ b/native/input/input-state-container.react.js @@ -1729,7 +1729,7 @@ const mediaReportsEnabled = useIsReportEnabled('mediaReports'); const staffCanSee = useStaffCanSee(); const textMessageCreationSideEffectsFunc = - useMessageCreationSideEffectsFunc(messageTypes.TEXT); + useMessageCreationSideEffectsFunc(messageTypes.TEXT); return ( { + const [expanded, setExpanded] = React.useState>(() => { if (communitiesSuffixed.length === 1) { return new Set([communitiesSuffixed[0].id]); } diff --git a/native/themes/colors.js b/native/themes/colors.js --- a/native/themes/colors.js +++ b/native/themes/colors.js @@ -267,7 +267,7 @@ }, ); -const magicStrings = new Set(); +const magicStrings = new Set(); for (const theme in colors) { for (const magicString in colors[theme]) { magicStrings.add(magicString);