thelounge/client/js/socket-events/msg_special.js
2019-11-25 20:12:51 +02:00

11 lines
266 B
JavaScript

"use strict";
const socket = require("../socket");
const {vueApp, findChannel} = require("../vue");
socket.on("msg:special", function(data) {
const channel = findChannel(data.chan);
channel.channel.data = data.data;
vueApp.switchToChannel(channel.channel);
});