mirror of
https://github.com/revoltchat/revite.git
synced 2024-12-24 22:52:09 -05:00
Completely remove all references to Username.
This commit is contained in:
parent
0397700b88
commit
564c1d8494
1 changed files with 4 additions and 4 deletions
|
@ -84,16 +84,16 @@ export const TypingIndicator = observer(({ typing }: Props) => {
|
||||||
const userlist = [...users].map((x) => x.username);
|
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 = (
|
||||||
<Text
|
<Text
|
||||||
id="app.main.channel.typing.multiple"
|
id="app.main.channel.typing.multiple"
|
||||||
fields={{
|
fields={{
|
||||||
user,
|
user,
|
||||||
userlist,
|
userlist: userlist.join(", "),
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
|
@ -101,7 +101,7 @@ export const TypingIndicator = observer(({ typing }: Props) => {
|
||||||
text = (
|
text = (
|
||||||
<Text
|
<Text
|
||||||
id="app.main.channel.typing.single"
|
id="app.main.channel.typing.single"
|
||||||
fields={{ user: <Username user={users[0]} /> }}
|
fields={{ user: users[0].username }}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue