mirror of
https://github.com/KokaKiwi/BarInsta
synced 2024-11-22 22:57:29 +00:00
Remove unnecessary null check
This commit is contained in:
parent
f3d5678225
commit
3b41cd78bd
@ -27,11 +27,6 @@ public final class DMUtils {
|
|||||||
public static boolean isRead(@NonNull final DirectItem item,
|
public static boolean isRead(@NonNull final DirectItem item,
|
||||||
@NonNull final Map<Long, DirectThreadLastSeenAt> lastSeenAt,
|
@NonNull final Map<Long, DirectThreadLastSeenAt> lastSeenAt,
|
||||||
@NonNull final List<Long> userIdsToCheck) {
|
@NonNull final List<Long> userIdsToCheck) {
|
||||||
// Further check if directStory exists
|
|
||||||
// if (read && directStory != null) {
|
|
||||||
// read = false;
|
|
||||||
// }
|
|
||||||
if (item == null) return false;
|
|
||||||
return lastSeenAt.entrySet()
|
return lastSeenAt.entrySet()
|
||||||
.stream()
|
.stream()
|
||||||
.filter(entry -> userIdsToCheck.contains(entry.getKey()))
|
.filter(entry -> userIdsToCheck.contains(entry.getKey()))
|
||||||
|
Loading…
Reference in New Issue
Block a user