🎨 Format using ESLint
This commit is contained in:
parent
d5fdf50fae
commit
6671228028
1 changed files with 28 additions and 23 deletions
|
@ -384,33 +384,38 @@
|
||||||
storage,
|
storage,
|
||||||
});
|
});
|
||||||
console.log('Sync read receipt configuration status:', status);
|
console.log('Sync read receipt configuration status:', status);
|
||||||
/* eslint-disable */
|
|
||||||
|
|
||||||
if (firstRun === true && deviceId != '1') {
|
if (firstRun === true && deviceId !== '1') {
|
||||||
if (!storage.get('theme-setting') && textsecure.storage.get('userAgent') === 'OWI') {
|
const hasThemeSetting = Boolean(storage.get('theme-setting'));
|
||||||
storage.put('theme-setting', 'ios');
|
if (!hasThemeSetting && textsecure.storage.get('userAgent') === 'OWI') {
|
||||||
onChangeTheme();
|
storage.put('theme-setting', 'ios');
|
||||||
}
|
onChangeTheme();
|
||||||
var syncRequest = new textsecure.SyncRequest(textsecure.messaging, messageReceiver);
|
}
|
||||||
Whisper.events.trigger('contactsync:begin');
|
const syncRequest = new textsecure.SyncRequest(
|
||||||
syncRequest.addEventListener('success', function() {
|
textsecure.messaging,
|
||||||
console.log('sync successful');
|
messageReceiver
|
||||||
storage.put('synced_at', Date.now());
|
);
|
||||||
Whisper.events.trigger('contactsync');
|
Whisper.events.trigger('contactsync:begin');
|
||||||
});
|
syncRequest.addEventListener('success', () => {
|
||||||
syncRequest.addEventListener('timeout', function() {
|
console.log('sync successful');
|
||||||
console.log('sync timed out');
|
storage.put('synced_at', Date.now());
|
||||||
Whisper.events.trigger('contactsync');
|
Whisper.events.trigger('contactsync');
|
||||||
});
|
});
|
||||||
|
syncRequest.addEventListener('timeout', () => {
|
||||||
|
console.log('sync timed out');
|
||||||
|
Whisper.events.trigger('contactsync');
|
||||||
|
});
|
||||||
|
|
||||||
if (Whisper.Import.isComplete()) {
|
if (Whisper.Import.isComplete()) {
|
||||||
textsecure.messaging.sendRequestConfigurationSyncMessage().catch(function(e) {
|
textsecure.messaging.sendRequestConfigurationSyncMessage().catch((e) => {
|
||||||
console.log(e);
|
console.log(e);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
/* eslint-disable */
|
||||||
|
|
||||||
function onChangeTheme() {
|
function onChangeTheme() {
|
||||||
var view = window.owsDesktopApp.appView;
|
var view = window.owsDesktopApp.appView;
|
||||||
if (view) {
|
if (view) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue