Browse Source

Remove unnecessary null check

renovate/org.robolectric-robolectric-4.x
Ammar Githam 4 years ago
parent
commit
3b41cd78bd
  1. 5
      app/src/main/java/awais/instagrabber/utils/DMUtils.java

5
app/src/main/java/awais/instagrabber/utils/DMUtils.java

@ -27,11 +27,6 @@ public final class DMUtils {
public static boolean isRead(@NonNull final DirectItem item,
@NonNull final Map<Long, DirectThreadLastSeenAt> lastSeenAt,
@NonNull final List<Long> userIdsToCheck) {
// Further check if directStory exists
// if (read && directStory != null) {
// read = false;
// }
if (item == null) return false;
return lastSeenAt.entrySet()
.stream()
.filter(entry -> userIdsToCheck.contains(entry.getKey()))

Loading…
Cancel
Save