hardlounge/client/js/socket-events/topic.js
2019-11-25 20:13:12 +02:00

13 lines
231 B
JavaScript

"use strict";
import socket from "../socket";
import store from "../store";
socket.on("topic", function(data) {
const channel = store.getters.findChannel(data.chan);
if (channel) {
channel.channel.topic = data.topic;
}
});