mirror of
https://github.com/urbit/shrub.git
synced 2025-01-03 01:54:43 +03:00
parent
9ba4b0c1cf
commit
16311deee3
@ -25,8 +25,8 @@ const participantNames = (str: string, contacts, hideNicknames) => {
|
||||
if (_.includes(str, ',') && _.startsWith(str, '~')) {
|
||||
const names = _.split(str, ', ');
|
||||
return names.map((name, idx) => {
|
||||
if (urbitOb.isValidPatp(name) && !hideNicknames) {
|
||||
if (contacts[name]?.nickname)
|
||||
if (urbitOb.isValidPatp(name)) {
|
||||
if (contacts[name]?.nickname && !hideNicknames)
|
||||
return (
|
||||
<Text key={name} fontSize={2} fontWeight='600'>
|
||||
{contacts[name]?.nickname}
|
||||
|
@ -104,8 +104,8 @@ export function SidebarItem(props: {
|
||||
if (_.includes(str, ',') && _.startsWith(str, '~')) {
|
||||
const names = _.split(str, ', ');
|
||||
return names.map((name, idx) => {
|
||||
if (urbitOb.isValidPatp(name) && !hideNicknames) {
|
||||
if (contacts[name]?.nickname)
|
||||
if (urbitOb.isValidPatp(name)) {
|
||||
if (contacts[name]?.nickname && !hideNicknames)
|
||||
return (
|
||||
<Text key={name} color={color}>
|
||||
{contacts[name]?.nickname}
|
||||
|
Loading…
Reference in New Issue
Block a user