2017-05-18 16:08:54 -04:00
|
|
|
"use strict";
|
|
|
|
|
|
|
|
const socket = require("../socket");
|
2018-07-12 14:36:44 -04:00
|
|
|
const {findChannel} = require("../vue");
|
2017-05-18 16:08:54 -04:00
|
|
|
|
|
|
|
socket.on("topic", function(data) {
|
2018-07-12 15:06:17 -04:00
|
|
|
const channel = findChannel(data.chan);
|
2018-07-12 14:36:44 -04:00
|
|
|
|
|
|
|
if (channel) {
|
|
|
|
channel.channel.topic = data.topic;
|
|
|
|
}
|
2017-05-18 16:08:54 -04:00
|
|
|
});
|