mirror of
https://github.com/thelounge/thelounge.git
synced 2024-05-17 05:36:36 +02:00
13 lines
360 B
JavaScript
13 lines
360 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;
|
|
});
|
|
//# sourceMappingURL=history_clear.js.map
|