hardlounge/client/js/socket-events/topic.ts

11 lines
219 B
TypeScript
Raw Normal View History

2019-11-16 12:24:03 -05:00
import socket from "../socket";
import {store} from "../store";
2017-05-18 16:08:54 -04:00
socket.on("topic", function (data) {
const channel = store.getters.findChannel(data.chan);
2018-07-12 14:36:44 -04:00
if (channel) {
channel.channel.topic = data.topic;
}
2017-05-18 16:08:54 -04:00
});