mirror of
https://github.com/thelounge/thelounge
synced 2024-11-26 14:00:21 +00:00
14 lines
321 B
JavaScript
14 lines
321 B
JavaScript
"use strict";
|
|
|
|
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;
|
|
});
|