diff --git a/external/lang b/external/lang index dad00381..5cad406a 160000 --- a/external/lang +++ b/external/lang @@ -1 +1 @@ -Subproject commit dad00381aaaafc1ab829816dffc31f0f37ee56a9 +Subproject commit 5cad406a2fb09d90803c5604d6f27701c3bf140b diff --git a/src/components/common/user/UserIcon.tsx b/src/components/common/user/UserIcon.tsx index 9d7bb801..724f042e 100644 --- a/src/components/common/user/UserIcon.tsx +++ b/src/components/common/user/UserIcon.tsx @@ -9,6 +9,7 @@ import { AppContext } from "../../../context/revoltjs/RevoltClient"; type VoiceStatus = "muted"; interface Props extends IconBaseProps { + mask?: string; status?: boolean; voice?: VoiceStatus; } @@ -52,7 +53,7 @@ import fallback from '../assets/user.png'; export default function UserIcon(props: Props & Omit, keyof Props>) { const client = useContext(AppContext); - const { target, attachment, size, voice, status, animate, children, as, ...svgProps } = props; + const { target, attachment, size, voice, status, animate, mask, children, as, ...svgProps } = props; const iconURL = client.generateFileURL(target?.avatar ?? attachment, { max_side: 256 }, animate) ?? (target ? client.users.getDefaultAvatarURL(target._id) : fallback); @@ -62,7 +63,7 @@ export default function UserIcon(props: Props & Omit