thelounge/client/js/socket-events/topic.js
2019-02-12 12:48:43 +02:00

12 lines
233 B
JavaScript

"use strict";
const socket = require("../socket");
const {findChannel} = require("../vue");
socket.on("topic", function(data) {
const channel = findChannel(data.chan);
if (channel) {
channel.channel.topic = data.topic;
}
});