aboutsummaryrefslogtreecommitdiff
path: root/juick-www/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'juick-www/src/main/java')
-rw-r--r--juick-www/src/main/java/com/juick/www/PushComponent.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/juick-www/src/main/java/com/juick/www/PushComponent.java b/juick-www/src/main/java/com/juick/www/PushComponent.java
index 67366628..65fbcef0 100644
--- a/juick-www/src/main/java/com/juick/www/PushComponent.java
+++ b/juick-www/src/main/java/com/juick/www/PushComponent.java
@@ -158,7 +158,7 @@ public class PushComponent implements ServletContextListener, Stream.StreamListe
/*** ANDROID ***/
final List<String> regids = new ArrayList<>();
if (isPM) {
- PushQueries.getAndroidRegID(sql, pmTo).ifPresent(regids::add);
+ regids.addAll(PushQueries.getAndroidRegID(sql, pmTo));
} else {
List<Integer> uids = subscribedUsers.stream().map(com.juick.User::getUID).collect(Collectors.toList());
if (uids.size() > 0) {
@@ -189,7 +189,7 @@ public class PushComponent implements ServletContextListener, Stream.StreamListe
/*** WinPhone ***/
final List<String> urls = new ArrayList<>();
if (isPM) {
- PushQueries.getWinPhoneURL(sql, pmTo).ifPresent(urls::add);
+ urls.addAll(PushQueries.getWinPhoneURL(sql, pmTo));
} else {
List<Integer> uids = subscribedUsers.stream().map(com.juick.User::getUID).collect(Collectors.toList());
if (uids.size() > 0) {
@@ -234,7 +234,7 @@ public class PushComponent implements ServletContextListener, Stream.StreamListe
/*** iOS ***/
final List<String> tokens = new ArrayList<>();
if (isPM) {
- PushQueries.getAPNSToken(sql, pmTo).ifPresent(tokens::add);
+ tokens.addAll(PushQueries.getAPNSToken(sql, pmTo));
} else {
List<Integer> uids = subscribedUsers.stream().map(com.juick.User::getUID).collect(Collectors.toList());
if (uids.size() > 0) {