diff --git a/src/components/common/messaging/bars/TypingIndicator.tsx b/src/components/common/messaging/bars/TypingIndicator.tsx index 0e19a34d..6cbee0e4 100644 --- a/src/components/common/messaging/bars/TypingIndicator.tsx +++ b/src/components/common/messaging/bars/TypingIndicator.tsx @@ -76,15 +76,19 @@ export function TypingIndicator({ typing }: Props) { if (users.length >= 5) { text = ; } else if (users.length > 1) { - const usersCopy = [...users]; + const userlist = [...users].map((x) => ); + const user = userlist.pop(); + + for (let i = 0; i < userlist.length - 1; i++) { + userlist.splice(i * 2 + 1, 0, <>, ); + } + text = ( , - userlist: usersCopy - .map((x) => ) - .join(", "), + user, + userlist, }} /> );