fix(fcm): 커뮤니티 댓글 알림 딥링크에서 크리에이터 경로를 제거한다
This commit is contained in:
@@ -207,12 +207,11 @@ class FcmService(
|
||||
"voiceon-test"
|
||||
}
|
||||
|
||||
val baseDeepLink = "$uriScheme://${deepLinkValue.value}/$deepLinkId"
|
||||
if (deepLinkValue == FcmDeepLinkValue.COMMUNITY && deepLinkCommentPostId != null) {
|
||||
return "$baseDeepLink?postId=$deepLinkCommentPostId"
|
||||
return "$uriScheme://${deepLinkValue.value}?postId=$deepLinkCommentPostId"
|
||||
}
|
||||
|
||||
return baseDeepLink
|
||||
return "$uriScheme://${deepLinkValue.value}/$deepLinkId"
|
||||
}
|
||||
|
||||
fun buildDataPayload(
|
||||
|
||||
+1
-1
@@ -212,7 +212,7 @@ class PushNotificationServiceTest {
|
||||
val captor = ArgumentCaptor.forClass(PushNotificationList::class.java)
|
||||
Mockito.verify(pushNotificationListRepository).save(captor.capture())
|
||||
val saved = captor.value
|
||||
assertEquals("voiceon://community/77?postId=999", saved.deepLink)
|
||||
assertEquals("voiceon://community?postId=999", saved.deepLink)
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user