fix [聊天界面-未关注的用户无关注按钮]

This commit is contained in:
zlzw 2024-03-23 13:50:30 +08:00
parent 7cf7c1e993
commit 434486387d
2 changed files with 2 additions and 2 deletions

View File

@ -256,7 +256,7 @@ public class IMLoginModel extends BaseModel {
@SerializedName("guard_type") @SerializedName("guard_type")
private String guardType = ""; private String guardType = "";
@SerializedName("isAttention") @SerializedName("isAttention")
private int attention; private int attention;//1被关注 2已关注 3互关 0没关系
@SerializedName("type") @SerializedName("type")
private String type; private String type;

View File

@ -284,7 +284,7 @@ public class PDLiveConversationActivity extends AbsActivity implements View.OnCl
} }
showBanner(); showBanner();
showTag(); showTag();
if (data.getUser().getAttention() == 0) { if (data.getUser().getAttention() <= 1) {
ViewUtils.findViewById(card, R.id.follow, Button.class).setOnClickListener(new View.OnClickListener() { ViewUtils.findViewById(card, R.id.follow, Button.class).setOnClickListener(new View.OnClickListener() {
@Override @Override
public void onClick(View view) { public void onClick(View view) {