mirror of
https://github.com/thelounge/thelounge
synced 2024-11-23 04:23:13 +00:00
13 lines
276 B
JavaScript
13 lines
276 B
JavaScript
"use strict";
|
|
|
|
const socket = require("../socket");
|
|
const render = require("../render");
|
|
const {vueApp, findChannel} = require("../vue");
|
|
|
|
socket.on("names", function(data) {
|
|
const channel = findChannel(data.id);
|
|
|
|
if (channel) {
|
|
channel.channel.users = data.users;
|
|
}
|
|
});
|