Austin Huang
4 years ago
No known key found for this signature in database
GPG Key ID: 84C23AA04587A91F
1 changed files with
4 additions and
1 deletions
-
app/src/main/java/awais/instagrabber/managers/ThreadManager.java
|
@ -179,6 +179,9 @@ public final class ThreadManager { |
|
|
return null; |
|
|
return null; |
|
|
} |
|
|
} |
|
|
final DirectInbox inbox = inboxResource.data; |
|
|
final DirectInbox inbox = inboxResource.data; |
|
|
|
|
|
if (inbox == null) { |
|
|
|
|
|
return null; |
|
|
|
|
|
} |
|
|
final List<DirectThread> threads = inbox.getThreads(); |
|
|
final List<DirectThread> threads = inbox.getThreads(); |
|
|
if (threads == null || threads.isEmpty()) { |
|
|
if (threads == null || threads.isEmpty()) { |
|
|
return null; |
|
|
return null; |
|
@ -264,7 +267,7 @@ public final class ThreadManager { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
private List<User> getUsersWithCurrentUser(final DirectThread t) { |
|
|
private List<User> getUsersWithCurrentUser(final DirectThread t) { |
|
|
final ImmutableList.Builder<User> builder = ImmutableList.<User>builder(); |
|
|
|
|
|
|
|
|
final ImmutableList.Builder<User> builder = ImmutableList.builder(); |
|
|
if (currentUser != null) { |
|
|
if (currentUser != null) { |
|
|
builder.add(currentUser); |
|
|
builder.add(currentUser); |
|
|
} |
|
|
} |
|
|