(fix): fullscreen popovers not showing (qol): update todo
This commit is contained in:
parent
05c186e04e
commit
bd1622d63a
9 changed files with 87 additions and 68 deletions
|
|
@ -105,14 +105,17 @@ export default function Screen() {
|
|||
messagesRef.current = messages;
|
||||
}, [messages]);
|
||||
|
||||
const getItemKey = React.useCallback((index: number) => {
|
||||
if (shouldShowConversationStart && index === 0) {
|
||||
return "conversation-start";
|
||||
}
|
||||
const getItemKey = React.useCallback(
|
||||
(index: number) => {
|
||||
if (shouldShowConversationStart && index === 0) {
|
||||
return "conversation-start";
|
||||
}
|
||||
|
||||
const messageIndex = shouldShowConversationStart ? index - 1 : index;
|
||||
return messagesRef.current[messageIndex]?.send_time ?? index;
|
||||
}, [shouldShowConversationStart]);
|
||||
const messageIndex = shouldShowConversationStart ? index - 1 : index;
|
||||
return messagesRef.current[messageIndex]?.send_time ?? index;
|
||||
},
|
||||
[shouldShowConversationStart],
|
||||
);
|
||||
|
||||
const setMeasurementRef = React.useCallback(
|
||||
(sendTime: number, element: HTMLDivElement | null) => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue