mirror of
https://github.com/Qortal/qortal-mobile.git
synced 2025-04-01 18:15:54 +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
|
let unread = false
|
||||||
|
|
||||||
mails.forEach((mail)=> {
|
mails.forEach((mail)=> {
|
||||||
if(lastEnteredTimestamp && isLessThanOneWeekOld(mail?.created)){
|
if(!lastEnteredTimestamp && isLessThanOneWeekOld(mail?.created) || (lastEnteredTimestamp && isLessThanOneWeekOld(mail?.created) && lastEnteredTimestamp < mail?.created)){
|
||||||
unread = true
|
unread = true
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@ -144,13 +144,13 @@ export const QMailMessages = ({userName, userAddress}) => {
|
|||||||
Latest Q-Mails
|
Latest Q-Mails
|
||||||
</Typography>
|
</Typography>
|
||||||
<MarkEmailUnreadIcon sx={{
|
<MarkEmailUnreadIcon sx={{
|
||||||
color: anyUnread ? '--unread' : 'white'
|
color: anyUnread ? 'var(--unread)' : 'white'
|
||||||
}}/>
|
}}/>
|
||||||
{isExpanded ? <ExpandLessIcon sx={{
|
{isExpanded ? <ExpandLessIcon sx={{
|
||||||
marginLeft: 'auto'
|
marginLeft: 'auto'
|
||||||
}} /> : (
|
}} /> : (
|
||||||
<ExpandMoreIcon sx={{
|
<ExpandMoreIcon sx={{
|
||||||
color: anyUnread ? '--unread' : 'white',
|
color: anyUnread ? 'var(--unread)' : 'white',
|
||||||
marginLeft: 'auto'
|
marginLeft: 'auto'
|
||||||
}} />
|
}} />
|
||||||
)}
|
)}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user