Skip to content

Commit

Permalink
Merge pull request #258 from depromeet/feature/257-validate-send-noti…
Browse files Browse the repository at this point in the history
…fication
  • Loading branch information
mybloom authored Dec 30, 2022
2 parents d5ba4ef + fe99c6b commit 47dc968
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,9 @@ public void sendInstance(SendInstanceRequest request) {

List<DeviceToken> deviceTokens = getDeviceTokens(request.getGroupId(), sendUserId);
List<String> tokens = getFcmTokens(deviceTokens);
if (tokens.isEmpty()) {
return;
}

fcmService.sendGroupMessage(
tokens, request.getTitle(), request.getContent(), request.getImageUrl());
Expand Down

0 comments on commit 47dc968

Please sign in to comment.