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

12 lines
293 B
JavaScript
Raw Normal View History

2018-07-10 11:16:24 +02:00
"use strict";
2019-11-16 18:24:03 +01:00
import socket from "../socket";
import store from "../store";
import {switchToChannel} from "../router";
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;
2019-11-11 20:18:55 +01:00
switchToChannel(channel.channel);
2018-07-10 11:16:24 +02:00
});