Temporarily remove TextReact.

This commit is contained in:
Paul 2021-08-08 18:40:25 +01:00
parent db8dedd3a7
commit add94d59ff

View file

@ -70,29 +70,31 @@ export default observer(({ channel }: Props) => {
const userlist = [...users].map((x) => (
<Username key={x!._id} user={x} showServerIdentity />
));
const user = userlist.pop();
//const user = userlist.pop();
for (let i = 0; i < userlist.length - 1; i++) {
userlist.splice(i * 2 + 1, 0, <span key={`sep_${i}`}>, </span>);
}
text = (
<TextReact
userlist
/*<TextReact
id="app.main.channel.typing.multiple"
fields={{
user,
userlist,
}}
/>
/>*/
);
} else {
text = (
<TextReact
<Username user={users[0]} showServerIdentity />
/*<TextReact
id="app.main.channel.typing.single"
fields={{
user: <Username user={users[0]} showServerIdentity />,
}}
/>
/>*/
);
}