mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-24 21:15:48 +00:00
Fix issue where links do not render in stories if previews are off.
This commit is contained in:
committed by
Cody Henthorne
parent
760ace93d4
commit
8fd378db4e
@@ -251,7 +251,7 @@ class TextStoryPostCreationFragment : Fragment(R.layout.stories_text_post_creati
|
||||
return if (linkPreviewState.linkPreview.isPresent) {
|
||||
linkPreviewState.linkPreview.get()
|
||||
} else if (!linkPreviewState.activeUrlForError.isNullOrEmpty()) {
|
||||
LinkPreview(linkPreviewState.activeUrlForError!!, "", "", 0L, Optional.empty())
|
||||
LinkPreview(linkPreviewState.activeUrlForError!!, linkPreviewState.activeUrlForError!!, "", 0L, Optional.empty())
|
||||
} else {
|
||||
null
|
||||
}
|
||||
|
||||
@@ -3081,7 +3081,7 @@ public final class MessageContentProcessor {
|
||||
LinkPreview linkPreview = new LinkPreview(url.get(), title.orElse(""), description.orElse(""), preview.getDate(), thumbnail);
|
||||
linkPreviews.add(linkPreview);
|
||||
} else {
|
||||
warn(String.format("Discarding an invalid link preview. hasTitle: %b presentInBody: %b validDomain: %b", hasTitle, presentInBody, validDomain));
|
||||
warn(String.format("Discarding an invalid link preview. hasTitle: %b presentInBody: %b isStoryEmbed: %b validDomain: %b", hasTitle, presentInBody, isStoryEmbed, validDomain));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user