Merge pull request #1025 from Adarsh9977/unread-bin-count

fix bin count
This commit is contained in:
Adam
2025-05-23 12:50:24 -07:00
committed by GitHub
2 changed files with 2 additions and 6 deletions

View File

@@ -345,7 +345,7 @@ const Thread = memo(
)}
</Avatar>
<div className="z-1 relative">
{getThreadData.hasUnread && !isMailSelected && !isFolderSent && !isFolderBin ? (
{getThreadData.hasUnread && !isMailSelected && !isFolderSent ? (
<span className="absolute -bottom-[1px] right-0.5 size-2 rounded bg-[#006FFE]" />
) : null}
</div>

View File

@@ -156,13 +156,9 @@ export class GoogleMailManager implements MailManager {
userId: 'me',
id: label.id ?? undefined,
});
const count =
label.name === 'TRASH'
? Number(res.data.threadsTotal)
: Number(res.data.threadsUnread);
return {
label: res.data.name ?? res.data.id ?? '',
count: count ?? undefined,
count: Number(res.data.threadsUnread) ?? undefined,
};
}),
);