Enable link previews by default

pull/572/head
Beaudan Brown 6 years ago
parent 0d9c22038c
commit 5e1e70ac8c

@ -1235,7 +1235,7 @@
}, },
"linkPreviewsSettingDescription": { "linkPreviewsSettingDescription": {
"message": "message":
"Enable local link previews (Restart for changes to take effect).", "Enable local link previews",
"description": "Description shown for the Link Preview option " "description": "Description shown for the Link Preview option "
}, },
"spellCheckDescription": { "spellCheckDescription": {

@ -607,6 +607,12 @@
Whisper.events.on('registration_done', async () => { Whisper.events.on('registration_done', async () => {
window.log.info('handling registration event'); window.log.info('handling registration event');
// Enable link previews as default
storage.onready(async () => {
storage.put('linkPreviews', true);
});
// listeners // listeners
Whisper.RotateSignedPreKeyListener.init(Whisper.events, newVersion); Whisper.RotateSignedPreKeyListener.init(Whisper.events, newVersion);
// window.Signal.RefreshSenderCertificate.initialize({ // window.Signal.RefreshSenderCertificate.initialize({

Loading…
Cancel
Save