mirror of
https://github.com/thelounge/thelounge
synced 2024-11-23 04:23:13 +00:00
Fix attached client not having token on login
This commit is contained in:
parent
833bdfa2aa
commit
2f15ab3999
1 changed files with 2 additions and 1 deletions
|
@ -237,7 +237,6 @@ function initializeClient(socket, client, token, lastMessage) {
|
|||
socket.on("disconnect", function() {
|
||||
client.clientDetach(socket.id);
|
||||
});
|
||||
client.clientAttach(socket.id, token);
|
||||
|
||||
socket.on(
|
||||
"input",
|
||||
|
@ -429,6 +428,8 @@ function initializeClient(socket, client, token, lastMessage) {
|
|||
socket.join(client.id);
|
||||
|
||||
const sendInitEvent = (tokenToSend) => {
|
||||
client.clientAttach(socket.id, token);
|
||||
|
||||
let networks = client.networks;
|
||||
|
||||
if (lastMessage > -1) {
|
||||
|
|
Loading…
Reference in a new issue