Fix issue where link previews wouldn't finish if we couldn't fetch the thumbnail.
This commit is contained in:
parent
11b1c9655c
commit
8ca94eb3d5
1 changed files with 1 additions and 0 deletions
|
@ -185,6 +185,7 @@ public class LinkPreviewRepository {
|
|||
try {
|
||||
Response response = call.execute();
|
||||
if (!response.isSuccessful() || response.body() == null) {
|
||||
callback.accept(Optional.empty());
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue