mirror of
https://github.com/thelounge/thelounge
synced 2024-11-26 22:10:22 +00:00
12 lines
231 B
JavaScript
12 lines
231 B
JavaScript
"use strict";
|
|
|
|
const socket = require("../socket");
|
|
const {findChannel} = require("../vue");
|
|
|
|
socket.on("names", function(data) {
|
|
const channel = findChannel(data.id);
|
|
|
|
if (channel) {
|
|
channel.channel.users = data.users;
|
|
}
|
|
});
|