2017-05-18 20:08:54 +00:00
|
|
|
"use strict";
|
|
|
|
|
|
|
|
const socket = require("../socket");
|
2018-07-12 18:36:44 +00:00
|
|
|
const {findChannel} = require("../vue");
|
2017-05-18 20:08:54 +00:00
|
|
|
|
|
|
|
socket.on("topic", function(data) {
|
2018-07-12 19:06:17 +00:00
|
|
|
const channel = 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
|
|
|
});
|