fix: show last sender avatar in streams list
This commit is contained in:
@@ -132,8 +132,13 @@ function StreamRow({
|
|||||||
return getInitials(otherEmail);
|
return getInitials(otherEmail);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (latestChild) {
|
||||||
|
return getInitials(latestChild.created_by_email);
|
||||||
|
}
|
||||||
|
|
||||||
return particle.properties.name.slice(0, 2).toUpperCase();
|
return particle.properties.name.slice(0, 2).toUpperCase();
|
||||||
}, [isDM, particle.visible_to, particle.properties.name, userEmail]);
|
}, [isDM, particle.visible_to, particle.properties.name, userEmail, latestChild]);
|
||||||
|
|
||||||
const isUnseen = useMemo(() => {
|
const isUnseen = useMemo(() => {
|
||||||
if (!latestChild) return false;
|
if (!latestChild) return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user