now direct messaging fully works

This commit is contained in:
2026-04-05 13:19:58 +02:00
parent 27cce022a4
commit ee0163d52c
3 changed files with 4 additions and 1 deletions
+3 -1
View File
@@ -386,7 +386,9 @@
function wsAuth() {
if (!ws) { log('WS', 'not connected', 'log-err'); return; }
const token = document.getElementById('ws-token').value;
const el = document.getElementById('ws-token');
const token = el ? el.value : currentToken;
if (!token) { log('WS', 'no token to auth with', 'log-err'); return; }
const msg = JSON.stringify({ token });
ws.send(msg);
log('WS →', msg, 'log-info');