|
|
@ -1,6 +1,6 @@ |
|
|
|
import { Box, Icon, TextInput, Select, Margins, Callout } from '@rocket.chat/fuselage'; |
|
|
|
import { Box, Icon, TextInput, Select, Margins, Callout } from '@rocket.chat/fuselage'; |
|
|
|
import { useResizeObserver, useMutableCallback, useAutoFocus } from '@rocket.chat/fuselage-hooks'; |
|
|
|
import { useResizeObserver, useMutableCallback, useAutoFocus } from '@rocket.chat/fuselage-hooks'; |
|
|
|
import React, { useMemo, useRef } from 'react'; |
|
|
|
import React, { useMemo } from 'react'; |
|
|
|
import { Virtuoso } from 'react-virtuoso'; |
|
|
|
import { Virtuoso } from 'react-virtuoso'; |
|
|
|
|
|
|
|
|
|
|
|
import ThreadComponent from '../../../../../app/threads/client/components/ThreadComponent'; |
|
|
|
import ThreadComponent from '../../../../../app/threads/client/components/ThreadComponent'; |
|
|
@ -35,7 +35,6 @@ function ThreadList({ |
|
|
|
setText, |
|
|
|
setText, |
|
|
|
}) { |
|
|
|
}) { |
|
|
|
const showRealNames = useSetting('UI_Use_Real_Name'); |
|
|
|
const showRealNames = useSetting('UI_Use_Real_Name'); |
|
|
|
const threadsRef = useRef(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const t = useTranslation(); |
|
|
|
const t = useTranslation(); |
|
|
|
const inputRef = useAutoFocus(true); |
|
|
|
const inputRef = useAutoFocus(true); |
|
|
@ -60,8 +59,6 @@ function ThreadList({ |
|
|
|
[t], |
|
|
|
[t], |
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
threadsRef.current = threads; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const { ref, contentBoxSize: { inlineSize = 378, blockSize = 1 } = {} } = useResizeObserver({ |
|
|
|
const { ref, contentBoxSize: { inlineSize = 378, blockSize = 1 } = {} } = useResizeObserver({ |
|
|
|
debounceDelay: 200, |
|
|
|
debounceDelay: 200, |
|
|
|
}); |
|
|
|
}); |
|
|
|