Lint and code cleanup

pull/186/head
Mikunj 6 years ago
parent 725a41a8d7
commit 7564e270f8

@ -256,8 +256,7 @@
storage.put('read-receipt-setting', value),
getLinkPreviewSetting: () => storage.get('linkPreviews', false),
setLinkPreviewSetting: value =>
storage.put('linkPreviews', value),
setLinkPreviewSetting: value => storage.put('linkPreviews', value),
getNotificationSetting: () =>
storage.get('notification-setting', 'message'),

@ -140,13 +140,9 @@
try {
const result = await Signal.LinkPreviews.helper.getPreview(firstLink);
if (!result) {
this.updatingPreview = false;
return;
}
if (!result.image && !result.title) {
// A link preview isn't worth showing unless we have either a title or an image
// A link preview isn't worth showing unless we have either a title or an image
if (!result || !(result.image || result.title)) {
this.updatingPreview = false;
return;
}

Loading…
Cancel
Save