13 lines
232 B
JavaScript
13 lines
232 B
JavaScript
"use strict";
|
|
|
|
import socket from "../socket";
|
|
import store from "../store";
|
|
|
|
socket.on("topic", function (data) {
|
|
const channel = store.getters.findChannel(data.chan);
|
|
|
|
if (channel) {
|
|
channel.channel.topic = data.topic;
|
|
}
|
|
});
|