라이브, 콘텐츠, 채널 공유하기
- sns 공유시 보여줄 og data 제거 - shorturl이 적용되지 않은 상태에서 url이 너무 길기 떄문데 임시 적용
This commit is contained in:
@@ -1005,8 +1005,7 @@ class LiveRoomActivity : BaseActivity<ActivityLiveRoomBinding>(ActivityLiveRoomB
|
||||
viewModel.shareRoomLink(
|
||||
response.roomId,
|
||||
response.isPrivateRoom,
|
||||
response.password,
|
||||
response.coverImageUrl
|
||||
response.password
|
||||
) {
|
||||
val intent = Intent(Intent.ACTION_SEND)
|
||||
intent.type = "text/plain"
|
||||
|
||||
@@ -300,16 +300,12 @@ class LiveRoomViewModel(
|
||||
roomId: Long,
|
||||
isPrivateRoom: Boolean,
|
||||
password: String?,
|
||||
coverImage: String,
|
||||
onSuccess: (String) -> Unit
|
||||
) {
|
||||
val params = mapOf(
|
||||
"af_dp" to "voiceon://",
|
||||
"deep_link_value" to "live",
|
||||
"deep_link_sub5" to "$roomId",
|
||||
"af_og_title" to "보이스온",
|
||||
"af_og_description" to "지금 보이스온에서 라이브 참여하기",
|
||||
"af_og_image" to coverImage
|
||||
"deep_link_sub5" to "$roomId"
|
||||
)
|
||||
|
||||
val shareUrl = Utils.createOneLinkUrl(params = params)
|
||||
|
||||
@@ -67,9 +67,7 @@ class LiveRoomDetailViewModel(private val repository: LiveRepository) : BaseView
|
||||
val params = mapOf(
|
||||
"af_dp" to "voiceon://",
|
||||
"deep_link_value" to "live",
|
||||
"deep_link_sub5" to "$roomId",
|
||||
"af_og_title" to "보이스온",
|
||||
"af_og_description" to "지금 보이스온에서 라이브 참여하기"
|
||||
"deep_link_sub5" to "$roomId"
|
||||
)
|
||||
|
||||
val shareUrl = Utils.createOneLinkUrl(params = params)
|
||||
|
||||
Reference in New Issue
Block a user