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

13 lines
229 B
JavaScript
Raw Normal View History

2017-05-18 22:08:54 +02:00
"use strict";
2019-11-16 18:24:03 +01:00
import socket from "../socket";
import store from "../store";
2017-05-18 22:08:54 +02:00
socket.on("names", function(data) {
const channel = store.getters.findChannel(data.id);
if (channel) {
channel.channel.users = data.users;
}
});