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

13 lines
231 B
JavaScript
Raw Normal View History

2017-05-18 20:08:54 +00:00
"use strict";
const socket = require("../socket");
2018-07-10 09:40:55 +00:00
const {findChannel} = require("../vue");
2017-05-18 20:08:54 +00:00
socket.on("names", function(data) {
const channel = findChannel(data.id);
if (channel) {
channel.channel.users = data.users;
}
});