Skip to content

Commit

Permalink
fixes after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon-Laux committed Jan 11, 2024
1 parent 8448faa commit 27fde9a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
7 changes: 3 additions & 4 deletions src/renderer/components/chat/ChatList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand Down Expand Up @@ -591,9 +591,8 @@ function useLogicChatPart(
showArchivedChats: boolean
) {
const { chatListIds, setQueryStr, setListFlags } = useChatList()
const { isChatLoaded, loadChats, chatCache } = useLogicVirtualChatList(
chatListIds
)
const { isChatLoaded, loadChats, chatCache } =
useLogicVirtualChatList(chatListIds)

// effects
useEffect(() => {
Expand Down
5 changes: 2 additions & 3 deletions src/renderer/components/dialogs/MailtoDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 27fde9a

Please sign in to comment.