2017-05-18 20:08:54 +00:00
|
|
|
"use strict";
|
|
|
|
|
|
|
|
const socket = require("../socket");
|
2019-11-03 14:59:43 +00:00
|
|
|
const store = require("../store").default;
|
2017-05-18 20:08:54 +00:00
|
|
|
|
2018-07-08 12:18:17 +00:00
|
|
|
socket.on("names", function(data) {
|
2019-11-03 14:59:43 +00:00
|
|
|
const channel = store.getters.findChannel(data.id);
|
2018-07-08 12:18:17 +00:00
|
|
|
|
|
|
|
if (channel) {
|
|
|
|
channel.channel.users = data.users;
|
|
|
|
}
|
|
|
|
});
|