A number of small fixes for Link Previews

This commit is contained in:
Scott Nonnenberg
2019-01-31 09:53:11 -08:00
parent b26f6231d8
commit 0d7480bd92
4 changed files with 5 additions and 14 deletions

View File

@@ -1182,7 +1182,7 @@
urls.includes(item.url) &&
window.Signal.LinkPreviews.isLinkInWhitelist(item.url)
);
if (preview.length > incomingPreview.length) {
if (preview.length < incomingPreview.length) {
window.log.info(
`${message.idForLogging()}: Eliminated ${preview.length -
incomingPreview.length} previews with invalid urls'`