[🐴] don't include blocked convos in unread count (#4082)
* don't include blocked convos in unread count * Use moderateProfile * Handle blocked state in chat list * Fix logic formatting, add todo --------- Co-authored-by: Eric Bailey <git@esb.lol>
This commit is contained in:
parent
dd0f57e3e3
commit
f42f7fa035
2 changed files with 28 additions and 8 deletions
|
@ -169,7 +169,7 @@ function ChatListItemReady({
|
|||
)}
|
||||
</TimeElapsed>
|
||||
)}
|
||||
{convo.muted && (
|
||||
{(convo.muted || moderation.blocked) && (
|
||||
<Text
|
||||
style={[
|
||||
a.text_sm,
|
||||
|
@ -200,7 +200,8 @@ function ChatListItemReady({
|
|||
convo.unreadCount > 0
|
||||
? a.font_bold
|
||||
: t.atoms.text_contrast_high,
|
||||
convo.muted && t.atoms.text_contrast_medium,
|
||||
(convo.muted || moderation.blocked) &&
|
||||
t.atoms.text_contrast_medium,
|
||||
]}>
|
||||
{lastMessage}
|
||||
</Text>
|
||||
|
@ -211,9 +212,10 @@ function ChatListItemReady({
|
|||
a.absolute,
|
||||
a.rounded_full,
|
||||
{
|
||||
backgroundColor: convo.muted
|
||||
? t.palette.contrast_200
|
||||
: t.palette.primary_500,
|
||||
backgroundColor:
|
||||
convo.muted || moderation.blocked
|
||||
? t.palette.contrast_200
|
||||
: t.palette.primary_500,
|
||||
height: 7,
|
||||
width: 7,
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue