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

12 lines
310 B
JavaScript
Raw Normal View History

2018-07-10 11:16:24 +02:00
"use strict";
const socket = require("../socket");
const {vueApp} = require("../vue");
const store = require("../store").default;
2018-07-10 11:16:24 +02:00
socket.on("msg:special", function(data) {
const channel = store.getters.findChannel(data.chan);
2019-10-25 23:37:40 +02:00
channel.channel.data = data.data;
vueApp.switchToChannel(channel.channel);
2018-07-10 11:16:24 +02:00
});