fix(thread-fragment): fixes crash when status.inReplyTo is null on getDirectDescendants

This commit is contained in:
LucasGGamerM 2023-09-19 14:25:03 -03:00
parent 24abf9d317
commit 7c9d11fab0
1 changed files with 1 additions and 1 deletions

View File

@ -321,7 +321,7 @@ public class ThreadFragment extends StatusListFragment implements ProvidesAssist
private static List<Status> getDirectDescendants(String id, List<Status> statuses){ private static List<Status> getDirectDescendants(String id, List<Status> statuses){
return statuses.stream() return statuses.stream()
.filter(s -> s.inReplyToId.equals(id)) .filter(s -> id.equals(s.inReplyToId))
.collect(Collectors.toList()); .collect(Collectors.toList());
} }