|
@@ -38,6 +38,7 @@ class PersonDataDFragment : BaseXDFragment<DialogPersonDataBinding>() {
|
|
|
var roomId:String = ""
|
|
|
var isAnchor = false //是否是主播点击了资料卡
|
|
|
var isAdmin = false
|
|
|
+ var isMessage = false
|
|
|
private var inRoom = false
|
|
|
private var isForbid = 0 //0没有被禁言 1已被禁言
|
|
|
var openGiftDialog:((nickName:String,userId:String)->Unit)? = null
|
|
@@ -45,13 +46,14 @@ class PersonDataDFragment : BaseXDFragment<DialogPersonDataBinding>() {
|
|
|
var sendMsgInRoom:((nickName:String)->Unit)? = null
|
|
|
|
|
|
companion object{
|
|
|
- fun newInstance(uid:String,isAnchor:Boolean=false,inRoom:Boolean=false,roomId:String=""): PersonDataDFragment {
|
|
|
+ fun newInstance(uid:String,isAnchor:Boolean=false,inRoom:Boolean=false,roomId:String="",isMessage:Boolean=false): PersonDataDFragment {
|
|
|
val dialog = PersonDataDFragment()
|
|
|
val bundle = Bundle()
|
|
|
bundle.putString("uid",uid)
|
|
|
bundle.putBoolean("inRoom",inRoom)
|
|
|
bundle.putBoolean("isAnchor",isAnchor)
|
|
|
bundle.putString("roomId",roomId)
|
|
|
+ bundle.putBoolean("isMessage",isMessage)
|
|
|
dialog.arguments = bundle
|
|
|
return dialog
|
|
|
}
|
|
@@ -64,13 +66,16 @@ class PersonDataDFragment : BaseXDFragment<DialogPersonDataBinding>() {
|
|
|
inRoom = it.getBoolean("inRoom")
|
|
|
isAnchor = it.getBoolean("isAnchor")
|
|
|
roomId = it.getString("roomId","")
|
|
|
+ isMessage = it.getBoolean("isMessage")
|
|
|
if (!TextUtils.isEmpty(uid)){
|
|
|
userVm.getOtherUserInfo(uid,roomId)
|
|
|
}
|
|
|
|
|
|
UserInfo.getUserInfo()?.let {
|
|
|
if (it.id == uid){
|
|
|
-// binding.ivGift.visibility = View.GONE
|
|
|
+ if (isMessage){
|
|
|
+ binding.ivGift.visibility = View.GONE
|
|
|
+ }
|
|
|
binding.tvAt.visibility = View.GONE
|
|
|
binding.llChat.visibility = View.GONE
|
|
|
binding.llToFollow.visibility = View.GONE
|