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

13 lines
231 B
JavaScript
Raw Normal View History

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