2018-07-10 09:16:24 +00:00
|
|
|
"use strict";
|
|
|
|
|
|
|
|
const socket = require("../socket");
|
2019-11-03 14:59:43 +00:00
|
|
|
const store = require("../store").default;
|
2019-11-11 19:18:55 +00:00
|
|
|
const {switchToChannel} = require("../router");
|
2018-07-10 09:16:24 +00:00
|
|
|
|
|
|
|
socket.on("msg:special", function(data) {
|
2019-11-03 14:59:43 +00:00
|
|
|
const channel = store.getters.findChannel(data.chan);
|
2019-10-25 21:37:40 +00:00
|
|
|
channel.channel.data = data.data;
|
2019-11-11 19:18:55 +00:00
|
|
|
switchToChannel(channel.channel);
|
2018-07-10 09:16:24 +00:00
|
|
|
});
|