修复自动消息重复发送的问题

This commit is contained in:
zlzw 2022-10-31 17:53:31 +08:00
parent b5ebc085b4
commit 8b3f8d783e

View File

@ -409,6 +409,9 @@ public class LiveAudienceViewHolder extends AbsLiveViewHolder {
handler.postDelayed(runnable = new Runnable() {
@Override
public void run() {
if(!liveUid.equals(mLiveUid)){
return;
}
if (isattention == 0) {
LiveChatBean lvBean = new LiveChatBean();
lvBean.setType(-1);
@ -418,6 +421,7 @@ public class LiveAudienceViewHolder extends AbsLiveViewHolder {
LiveChatBean lvBean2 = new LiveChatBean();
lvBean2.setType(-2);
LiveRoomViewHolder.insertChat(lvBean2, 1);
Log.i("chatMgs", liveUid+"|"+mLiveUid);
}
}, 10000);//3秒后执行Runnable中的run方法
}