hardlounge/client/js/socket-events/names.js

14 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;
}
});