mirror of
https://github.com/thelounge/thelounge
synced 2024-11-22 20:13:07 +00:00
Sync on both load and reconnect.
This commit is contained in:
parent
107749e91a
commit
95dc519019
2 changed files with 3 additions and 1 deletions
|
@ -319,5 +319,5 @@ function initialize() {
|
|||
// Local init is done, let's sync
|
||||
// We always ask for synced settings even if it is disabled.
|
||||
// Settings can be mandatory to sync and it is used to determine sync base state.
|
||||
socket.emit("settings:get");
|
||||
socket.emit("setting:get");
|
||||
}
|
||||
|
|
|
@ -8,6 +8,8 @@ const webpush = require("../webpush");
|
|||
|
||||
socket.on("configuration", function(data) {
|
||||
if (options.initialized) {
|
||||
// Likely a reconnect, request sync for possibly missed settings.
|
||||
socket.emit("setting:get");
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue