mirror of
https://github.com/thelounge/thelounge.git
synced 2024-06-11 10:12:19 +02:00
12 lines
310 B
TypeScript
12 lines
310 B
TypeScript
import socket from "../socket";
|
|
import {store} from "../store";
|
|
import {switchToChannel} from "../router";
|
|
|
|
socket.on("msg:special", function (data) {
|
|
const netChan = store.getters.findChannel(data.chan);
|
|
// @ts-ignore
|
|
netChan.channel.data = data.data;
|
|
// @ts-ignore
|
|
switchToChannel(netChan.channel);
|
|
});
|