mirror of
https://github.com/thelounge/thelounge
synced 2024-11-29 23:40:28 +00:00
2f635069e0
Co-Authored-By: Tim Miller-Williams <timmw@users.noreply.github.com>
9 lines
222 B
JavaScript
9 lines
222 B
JavaScript
"use strict";
|
|
|
|
const socket = require("../socket");
|
|
const store = require("../store").default;
|
|
|
|
socket.on("sessions:list", function(data) {
|
|
data.sort((a, b) => b.lastUse - a.lastUse);
|
|
store.commit("sessions", data);
|
|
});
|