From 8913cd3ec997a105e64a14b30eed6fa15d8bf07c Mon Sep 17 00:00:00 2001 From: SimonLaux Date: Thu, 11 Jan 2024 03:25:04 +0100 Subject: [PATCH] fixes after rebase --- src/renderer/components/chat/ChatList.tsx | 7 +++---- src/renderer/components/dialogs/MailtoDialog.tsx | 5 ++--- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/src/renderer/components/chat/ChatList.tsx b/src/renderer/components/chat/ChatList.tsx index 522d235d30..03e3f1c4a8 100644 --- a/src/renderer/components/chat/ChatList.tsx +++ b/src/renderer/components/chat/ChatList.tsx @@ -11,7 +11,7 @@ import { ListChildComponentProps, ListItemKeySelector, } from 'react-window' -import { C, DcEvent, DcEventType, T } from '@deltachat/jsonrpc-client' +import { C, T } from '@deltachat/jsonrpc-client' import AutoSizer from 'react-virtualized-auto-sizer' import InfiniteLoader from 'react-window-infinite-loader' @@ -590,9 +590,8 @@ function useLogicChatPart( showArchivedChats: boolean ) { const { chatListIds, setQueryStr, setListFlags } = useChatList() - const { isChatLoaded, loadChats, chatCache } = useLogicVirtualChatList( - chatListIds - ) + const { isChatLoaded, loadChats, chatCache } = + useLogicVirtualChatList(chatListIds) // effects useEffect(() => { diff --git a/src/renderer/components/dialogs/MailtoDialog.tsx b/src/renderer/components/dialogs/MailtoDialog.tsx index 15bb723851..fd8d3bd25a 100644 --- a/src/renderer/components/dialogs/MailtoDialog.tsx +++ b/src/renderer/components/dialogs/MailtoDialog.tsx @@ -25,9 +25,8 @@ export default function MailtoDialog(props: Props & DialogProps) { const tx = useTranslationFunction() const { openDialog } = useDialog() const { chatListIds, queryStr, setQueryStr } = useChatList(listFlags) - const { isChatLoaded, loadChats, chatCache } = useLogicVirtualChatList( - chatListIds - ) + const { isChatLoaded, loadChats, chatCache } = + useLogicVirtualChatList(chatListIds) const onChatClick = async (chatId: number) => { createDraftMessage(openDialog, chatId, messageText)