Apply iOS theme after link

This commit is contained in:
Scott Nonnenberg 2018-04-24 18:32:47 -07:00
parent c614c3968b
commit b0b1dc6be8
No known key found for this signature in database
GPG key ID: 5F82280C35134661

View file

@ -373,6 +373,7 @@
if (firstRun === true && deviceId != '1') {
if (!storage.get('theme-setting') && textsecure.storage.get('userAgent') === 'OWI') {
storage.put('theme-setting', 'ios');
onChangeTheme();
}
var syncRequest = new textsecure.SyncRequest(textsecure.messaging, messageReceiver);
Whisper.events.trigger('contactsync:begin');
@ -394,6 +395,12 @@
}
}
function onChangeTheme() {
var view = window.owsDesktopApp.appView;
if (view) {
view.applyTheme();
}
}
function onEmpty() {
initialLoadComplete = true;