2017-05-18 16:08:54 -04:00
|
|
|
"use strict";
|
|
|
|
|
2019-11-16 12:24:03 -05:00
|
|
|
import socket from "../socket";
|
|
|
|
import store from "../store";
|
2017-05-18 16:08:54 -04:00
|
|
|
|
2018-07-08 08:18:17 -04:00
|
|
|
socket.on("names", function(data) {
|
2019-11-03 09:59:43 -05:00
|
|
|
const channel = store.getters.findChannel(data.id);
|
2018-07-08 08:18:17 -04:00
|
|
|
|
|
|
|
if (channel) {
|
|
|
|
channel.channel.users = data.users;
|
|
|
|
}
|
|
|
|
});
|