mirror of
https://github.com/revoltchat/revite.git
synced 2024-12-26 07:22:10 -05:00
Try reverting change to typing indicator.
This commit is contained in:
parent
6531486636
commit
0397700b88
1 changed files with 4 additions and 4 deletions
|
@ -81,15 +81,15 @@ export const TypingIndicator = observer(({ typing }: Props) => {
|
||||||
if (users.length >= 5) {
|
if (users.length >= 5) {
|
||||||
text = <Text id="app.main.channel.typing.several" />;
|
text = <Text id="app.main.channel.typing.several" />;
|
||||||
} else if (users.length > 1) {
|
} else if (users.length > 1) {
|
||||||
const userlist = [...users].map((x) => <Username user={x} />);
|
const userlist = [...users].map((x) => x.username);
|
||||||
const user = userlist.pop();
|
const user = userlist.pop();
|
||||||
|
|
||||||
for (let i = 0; i < userlist.length - 1; i++) {
|
for (let i = 0; i < userlist.length - 1; i++) {
|
||||||
userlist.splice(i * 2 + 1, 0, <>, </>);
|
userlist.splice(i * 2 + 1, 0, ", ");
|
||||||
}
|
}
|
||||||
|
|
||||||
text = (
|
text = (
|
||||||
<TextReact
|
<Text
|
||||||
id="app.main.channel.typing.multiple"
|
id="app.main.channel.typing.multiple"
|
||||||
fields={{
|
fields={{
|
||||||
user,
|
user,
|
||||||
|
@ -99,7 +99,7 @@ export const TypingIndicator = observer(({ typing }: Props) => {
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
text = (
|
text = (
|
||||||
<TextReact
|
<Text
|
||||||
id="app.main.channel.typing.single"
|
id="app.main.channel.typing.single"
|
||||||
fields={{ user: <Username user={users[0]} /> }}
|
fields={{ user: <Username user={users[0]} /> }}
|
||||||
/>
|
/>
|
||||||
|
|
Loading…
Reference in a new issue