라이브 - 방장을 제외한 모든 유저에게 참여자 목록 버튼이 보이지 않도록 수정

This commit is contained in:
2023-10-31 13:56:50 +09:00
parent c9eb0f0e01
commit 0226a696d4
2 changed files with 60 additions and 49 deletions

View File

@@ -759,7 +759,13 @@ class LiveRoomActivity : BaseActivity<ActivityLiveRoomBinding>(ActivityLiveRoomB
}
}
binding.llViewUsers.setOnClickListener { roomProfileDialog.show() }
if (response.creatorId == SharedPreferenceManager.userId) {
binding.llViewUsers.visibility = View.VISIBLE
binding.llViewUsers.setOnClickListener { roomProfileDialog.show() }
} else {
binding.llViewUsers.visibility = View.GONE
}
binding.tvParticipate.text = "${response.participantsCount}"
setNoticeAndClickableUrl(binding.tvNotice, response.notice)