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