|
|
@ -1914,8 +1914,13 @@
|
|
|
|
toastOptions.id = 'expiredWarning';
|
|
|
|
toastOptions.id = 'expiredWarning';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (!window.clientClockSynced) {
|
|
|
|
if (!window.clientClockSynced) {
|
|
|
|
// Check to see if user has updated their clock to current time
|
|
|
|
let clockSynced = false;
|
|
|
|
const clockSynced = await window.LokiPublicChatAPI.setClockParams();
|
|
|
|
if (window.setClockParams) {
|
|
|
|
|
|
|
|
// Check to see if user has updated their clock to current time
|
|
|
|
|
|
|
|
clockSynced = await window.setClockParams();
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
log.info('setClockParams not loaded yet');
|
|
|
|
|
|
|
|
}
|
|
|
|
if (clockSynced) {
|
|
|
|
if (clockSynced) {
|
|
|
|
toastOptions.title = i18n('clockOutOfSync');
|
|
|
|
toastOptions.title = i18n('clockOutOfSync');
|
|
|
|
toastOptions.id = 'clockOutOfSync';
|
|
|
|
toastOptions.id = 'clockOutOfSync';
|
|
|
|