Compacted code
This commit is contained in:
parent
20f817506f
commit
f7e1708039
@ -67,13 +67,7 @@ class ChatInputComponent extends HTMLElement {
|
|||||||
}
|
}
|
||||||
|
|
||||||
getAuthors() {
|
getAuthors() {
|
||||||
let authors = []
|
return this.users.flatMap((user) => [user.username, user.nick])
|
||||||
for (let i = 0; i < this.users.length; i++) {
|
|
||||||
authors.push(this.users[i].username)
|
|
||||||
authors.push(this.users[i].nick)
|
|
||||||
}
|
|
||||||
return authors
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
extractMentions(text) {
|
extractMentions(text) {
|
||||||
|
Loading…
Reference in New Issue
Block a user