Skip to content

Commit

Permalink
[fix/#160] 임시 조치 : 모임 참여자 3명 이상인 경우에만 리뷰 알림 전송
Browse files Browse the repository at this point in the history
  • Loading branch information
blueme0 committed Feb 16, 2024
1 parent 05601bf commit b9d5763
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class TeumMessagingService : FirebaseMessagingService() {
// Timber.tag("teum-alerts").d("participants size: ${message.data["participants"]?.split(",")?.size}")
alertMessage.participants = message.data["participants"]?.split(",")?.map { it.toInt() }
val userId = userRepository.getUserInfo()?.id?.toInt()
if (alertMessage.participants?.contains(userId) == true && alertMessage.participants?.size!! > 1)
if (alertMessage.participants?.contains(userId) == true && alertMessage.participants?.size!! > 2)
sendNotificationAlarm(alertMessage)
}
else if (alertMessage.title.isNotEmpty()) sendNotificationAlarm(alertMessage)
Expand Down

0 comments on commit b9d5763

Please sign in to comment.