Compare commits

..
2 Commits
2 changed files with 3 additions and 4 deletions
@@ -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(
@@ -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