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