mirror of
https://github.com/Mail-0/Zero.git
synced 2026-07-01 08:16:28 +00:00
saving...
This commit is contained in:
@@ -542,6 +542,8 @@ export const MailList = memo(({ isCompact }: MailListProps) => {
|
||||
return;
|
||||
}
|
||||
|
||||
void markAsRead({ ids: [message.threadId ?? message.id] }).then(() => mutate());
|
||||
|
||||
router.push(`/mail/inbox?threadId=${message.threadId ?? message.id}`);
|
||||
},
|
||||
[getSelectMode, folder, searchParams, items, handleMouseEnter],
|
||||
|
||||
@@ -128,7 +128,7 @@ export const useThreads = () => {
|
||||
};
|
||||
};
|
||||
|
||||
export const useThread = (threadId?: string) => {
|
||||
export const useThread = (threadId: string | null) => {
|
||||
const { data: session } = useSession();
|
||||
const searchParams = useSearchParams();
|
||||
const id = threadId ? threadId : searchParams.get('threadId');
|
||||
|
||||
Reference in New Issue
Block a user