From 0397700b88f6884a9a1e9e1c643159eca1595003 Mon Sep 17 00:00:00 2001 From: Paul <paulmakles@gmail.com> Date: Thu, 29 Jul 2021 21:43:04 +0100 Subject: [PATCH] Try reverting change to typing indicator. --- src/components/common/messaging/bars/TypingIndicator.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/common/messaging/bars/TypingIndicator.tsx b/src/components/common/messaging/bars/TypingIndicator.tsx index 816b7fc..260b56e 100644 --- a/src/components/common/messaging/bars/TypingIndicator.tsx +++ b/src/components/common/messaging/bars/TypingIndicator.tsx @@ -81,15 +81,15 @@ export const TypingIndicator = observer(({ typing }: Props) => { if (users.length >= 5) { text = <Text id="app.main.channel.typing.several" />; } else if (users.length > 1) { - const userlist = [...users].map((x) => <Username user={x} />); + const userlist = [...users].map((x) => x.username); const user = userlist.pop(); for (let i = 0; i < userlist.length - 1; i++) { - userlist.splice(i * 2 + 1, 0, <>, </>); + userlist.splice(i * 2 + 1, 0, ", "); } text = ( - <TextReact + <Text id="app.main.channel.typing.multiple" fields={{ user, @@ -99,7 +99,7 @@ export const TypingIndicator = observer(({ typing }: Props) => { ); } else { text = ( - <TextReact + <Text id="app.main.channel.typing.single" fields={{ user: <Username user={users[0]} /> }} /> -- GitLab