diff --git a/src/main/java/gg/agit/konect/domain/notification/service/NotificationService.java b/src/main/java/gg/agit/konect/domain/notification/service/NotificationService.java index 62200ad3..27c11e52 100644 --- a/src/main/java/gg/agit/konect/domain/notification/service/NotificationService.java +++ b/src/main/java/gg/agit/konect/domain/notification/service/NotificationService.java @@ -119,7 +119,8 @@ public void sendChatNotification(Integer receiverId, Integer roomId, String send data.put("path", "chats/" + roomId); List messages = tokens.stream() - .map(token -> new ExpoPushMessage(token, senderName, truncatedBody, data, DEFAULT_NOTIFICATION_CHANNEL_ID)) + .map(token -> new ExpoPushMessage( + token, senderName, truncatedBody, data, DEFAULT_NOTIFICATION_CHANNEL_ID)) .toList(); HttpHeaders headers = new HttpHeaders(); @@ -239,7 +240,8 @@ public void sendGroupChatNotification( } List messages = tokens.stream() - .map(token -> new ExpoPushMessage(token, clubName, previewBody, data, DEFAULT_NOTIFICATION_CHANNEL_ID)) + .map(token -> new ExpoPushMessage( + token, clubName, previewBody, data, DEFAULT_NOTIFICATION_CHANNEL_ID)) .toList(); HttpHeaders headers = new HttpHeaders();