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