From 5e1e70ac8cff379c1926590f0c0427a3f6528790 Mon Sep 17 00:00:00 2001 From: Beaudan Brown Date: Tue, 22 Oct 2019 15:23:59 +1100 Subject: [PATCH] Enable link previews by default --- _locales/en/messages.json | 2 +- js/background.js | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/_locales/en/messages.json b/_locales/en/messages.json index 503b5c29b..0630a41c6 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -1235,7 +1235,7 @@ }, "linkPreviewsSettingDescription": { "message": - "Enable local link previews (Restart for changes to take effect).", + "Enable local link previews", "description": "Description shown for the Link Preview option " }, "spellCheckDescription": { diff --git a/js/background.js b/js/background.js index b002669dc..2ce0b821d 100644 --- a/js/background.js +++ b/js/background.js @@ -607,6 +607,12 @@ Whisper.events.on('registration_done', async () => { window.log.info('handling registration event'); + // Enable link previews as default + storage.onready(async () => { + storage.put('linkPreviews', true); + }); + + // listeners Whisper.RotateSignedPreKeyListener.init(Whisper.events, newVersion); // window.Signal.RefreshSenderCertificate.initialize({