mirror of
https://github.com/thelounge/thelounge.git
synced 2024-06-01 13:22:29 +02:00
13 lines
308 B
TypeScript
13 lines
308 B
TypeScript
import socket from "../socket";
|
|
import {store} from "../store";
|
|
|
|
socket.on("history:clear", function (data) {
|
|
const {channel} = store.getters.findChannel(data.target);
|
|
|
|
channel.messages = [];
|
|
channel.unread = 0;
|
|
channel.highlight = 0;
|
|
channel.firstUnread = 0;
|
|
channel.moreHistoryAvailable = false;
|
|
});
|