mirror of
https://github.com/Qortal/qortal-mobile.git
synced 2025-03-14 11:52:33 +00:00
fix qmail notification
This commit is contained in:
parent
8c8c6e512b
commit
eb2d2e0508
@ -107,7 +107,7 @@ export const QMailMessages = ({userName, userAddress}) => {
|
||||
let unread = false
|
||||
|
||||
mails.forEach((mail)=> {
|
||||
if(lastEnteredTimestamp && isLessThanOneWeekOld(mail?.created)){
|
||||
if(!lastEnteredTimestamp && isLessThanOneWeekOld(mail?.created) || (lastEnteredTimestamp && isLessThanOneWeekOld(mail?.created) && lastEnteredTimestamp < mail?.created)){
|
||||
unread = true
|
||||
}
|
||||
})
|
||||
@ -144,13 +144,13 @@ export const QMailMessages = ({userName, userAddress}) => {
|
||||
Latest Q-Mails
|
||||
</Typography>
|
||||
<MarkEmailUnreadIcon sx={{
|
||||
color: anyUnread ? '--unread' : 'white'
|
||||
color: anyUnread ? 'var(--unread)' : 'white'
|
||||
}}/>
|
||||
{isExpanded ? <ExpandLessIcon sx={{
|
||||
marginLeft: 'auto'
|
||||
}} /> : (
|
||||
<ExpandMoreIcon sx={{
|
||||
color: anyUnread ? '--unread' : 'white',
|
||||
color: anyUnread ? 'var(--unread)' : 'white',
|
||||
marginLeft: 'auto'
|
||||
}} />
|
||||
)}
|
||||
|
Loading…
x
Reference in New Issue
Block a user