mirror of
https://github.com/thelounge/thelounge
synced 2025-02-18 06:08:26 +00:00
11 lines
310 B
JavaScript
11 lines
310 B
JavaScript
"use strict";
|
|
|
|
const socket = require("../socket");
|
|
const {vueApp} = require("../vue");
|
|
const store = require("../store").default;
|
|
|
|
socket.on("msg:special", function(data) {
|
|
const channel = store.getters.findChannel(data.chan);
|
|
channel.channel.data = data.data;
|
|
vueApp.switchToChannel(channel.channel);
|
|
});
|