2019-11-16 17:24:03 +00:00
|
|
|
import socket from "../socket";
|
2022-06-19 00:25:21 +00:00
|
|
|
import {store} from "../store";
|
2017-05-18 20:08:54 +00:00
|
|
|
|
2020-03-21 20:55:36 +00:00
|
|
|
socket.on("topic", function (data) {
|
2019-11-03 14:59:43 +00:00
|
|
|
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
|
|
|
});
|