mirror of
https://github.com/thelounge/thelounge
synced 2024-11-15 00:37:13 +00:00
18 lines
386 B
JavaScript
18 lines
386 B
JavaScript
"use strict";
|
|
|
|
import socket from "../socket";
|
|
import store from "../store";
|
|
|
|
socket.on("users", function (data) {
|
|
if (store.state.activeChannel && store.state.activeChannel.channel.id === data.chan) {
|
|
return socket.emit("names", {
|
|
target: data.chan,
|
|
});
|
|
}
|
|
|
|
const channel = store.getters.findChannel(data.chan);
|
|
|
|
if (channel) {
|
|
channel.channel.usersOutdated = true;
|
|
}
|
|
});
|