Compacted code
This commit is contained in:
		
							parent
							
								
									20f817506f
								
							
						
					
					
						commit
						f7e1708039
					
				| @ -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) { | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 BordedDev
						BordedDev