Refactored message logic to fix issues where they desync #51

Merged
retoor merged 4 commits from :bugfix/typing-desync into main 2025-06-01 22:07:52 +02:00
Showing only changes of commit f7e1708039 - Show all commits

View File

@ -67,13 +67,7 @@ class ChatInputComponent extends HTMLElement {
}
getAuthors() {
let authors = []
for (let i = 0; i < this.users.length; i++) {
authors.push(this.users[i].username)
authors.push(this.users[i].nick)
}
return authors
return this.users.flatMap((user) => [user.username, user.nick])
}
extractMentions(text) {