hardlounge/client/js/socket-events/topic.js
2020-03-21 22:55:36 +02:00

13 lines
232 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;
}
});