From 6c21a1e619d07af89be5b223334816b1a6a83b23 Mon Sep 17 00:00:00 2001 From: retoor Date: Tue, 27 May 2025 10:57:18 +0200 Subject: [PATCH] Async load users. --- src/snek/static/chat-input.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/snek/static/chat-input.js b/src/snek/static/chat-input.js index e089e73..0d09d30 100644 --- a/src/snek/static/chat-input.js +++ b/src/snek/static/chat-input.js @@ -144,7 +144,9 @@ levenshteinDistance(a, b) { parseInt(this.getAttribute("live-type-interval")) || 3; this.channelUid = this.getAttribute("channel"); - this.users = await app.rpc.getUsers(this.channelUid) + app.rpc.getUsers(this.channelUid).then(users=>{ + this.users = users + }) this.messageUid = null; this.classList.add("chat-input");