mirror of
https://github.com/KokaKiwi/BarInsta
synced 2024-11-22 22:57:29 +00:00
close #834?
This commit is contained in:
parent
19dbdcb326
commit
19516afb83
@ -121,9 +121,15 @@ public class NewsService extends BaseService {
|
|||||||
callback.onSuccess(null);
|
callback.onSuccess(null);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
final List<AymlUser> aymlUsers = new ArrayList<>();
|
final List<AymlUser> aymlUsers = new ArrayList<AymlUser>();
|
||||||
aymlUsers.addAll(body.getNewSuggestedUsers().getSuggestions());
|
final List<AymlUser> newSuggestions = body.getNewSuggestedUsers().getSuggestions();
|
||||||
aymlUsers.addAll(body.getSuggestedUsers().getSuggestions());
|
if (newSuggestions != null) {
|
||||||
|
aymlUsers.addAll(newSuggestions);
|
||||||
|
}
|
||||||
|
final List<AymlUser> oldSuggestions = body.getSuggestedUsers().getSuggestions();
|
||||||
|
if (oldSuggestions != null) {
|
||||||
|
aymlUsers.addAll(oldSuggestions);
|
||||||
|
}
|
||||||
|
|
||||||
final List<Notification> newsItems = aymlUsers.stream()
|
final List<Notification> newsItems = aymlUsers.stream()
|
||||||
.map(i -> {
|
.map(i -> {
|
||||||
|
Loading…
Reference in New Issue
Block a user