mirror of
https://github.com/SableClient/Sable.git
synced 2026-11-20 09:01:17 -08:00
added visual marker to mark it as a pmp
This commit is contained in:
1 file changed
+24
@@ -401,6 +401,10 @@ function MessageInternal(
|
||||
return convertBeeperFormatToOurPerMessageProfile(pmp);
|
||||
}, [pmp]);
|
||||
|
||||
/**
|
||||
* boolean to indicate wheather we should indicate to the user that it is a pmp
|
||||
*/
|
||||
const showPmPInfo = pmp !== undefined;
|
||||
// Profiles and Colors
|
||||
const profile = useUserProfile(senderId, room);
|
||||
const { color: usernameColor, font: usernameFont } = useSableCosmetics(senderId, room);
|
||||
@@ -515,6 +519,26 @@ function MessageInternal(
|
||||
{showPronouns && (
|
||||
<Pronouns pronouns={mergedPronouns} tagColor={usernameColor ?? 'currentColor'} />
|
||||
)}
|
||||
{showPmPInfo && (
|
||||
<Box>
|
||||
<Text as="span">
|
||||
<Text
|
||||
as="span"
|
||||
style={{ paddingLeft: 0, paddingRight: 5, fontWeight: 100, fontSize: 11 }}
|
||||
>
|
||||
via
|
||||
</Text>
|
||||
<Text
|
||||
as="span"
|
||||
size={messageLayout === MessageLayout.Bubble ? 'T300' : 'T400'}
|
||||
style={{ fontSize: 11 }}
|
||||
truncate
|
||||
>
|
||||
<UsernameBold>{senderDisplayName}</UsernameBold>
|
||||
</Text>
|
||||
</Text>
|
||||
</Box>
|
||||
)}
|
||||
{tagIconSrc && <PowerIcon size="100" iconSrc={tagIconSrc} />}
|
||||
</Box>
|
||||
<Box shrink="No" gap="100">
|
||||
|
||||
Reference in new issue
Block a user