thelounge/client/js/socket-events/names.js
2019-02-12 12:48:42 +02:00

12 lines
231 B
JavaScript

"use strict";
const socket = require("../socket");
const {findChannel} = require("../vue");
socket.on("names", function(data) {
const channel = findChannel(data.id);
if (channel) {
channel.channel.users = data.users;
}
});