塔罗活动静态飘屏 只在本房间触发
This commit is contained in:
@@ -20,7 +20,7 @@ class HomeChatAdapter :
|
||||
override fun convert(helper: BaseViewHolder, item: HomeRoomInfo) {
|
||||
val svgaLiving = helper.getView<SVGAImageView>(R.id.svga_living)
|
||||
ImageLoadUtilsV2.loadAvatar(helper.getView(R.id.iv_avatar), item.avatar)
|
||||
helper.setText(R.id.tv_name, item.title.subAndReplaceDot(8))
|
||||
helper.setText(R.id.tv_name, item.title.subAndReplaceDot(6))
|
||||
if (item.mgId == 0L) {
|
||||
helper.getView<Group>(R.id.group_game).visibility = View.INVISIBLE
|
||||
} else {
|
||||
|
@@ -109,6 +109,7 @@ import com.yizhuan.xchat_android_core.im.custom.bean.RoomPkBean;
|
||||
import com.yizhuan.xchat_android_core.im.custom.bean.RoomTipAttachment;
|
||||
import com.yizhuan.xchat_android_core.im.custom.bean.RouterType;
|
||||
import com.yizhuan.xchat_android_core.im.custom.bean.SysMsgAttachment;
|
||||
import com.yizhuan.xchat_android_core.im.custom.bean.TarotAttachment;
|
||||
import com.yizhuan.xchat_android_core.im.custom.bean.WelcomeAttachment;
|
||||
import com.yizhuan.xchat_android_core.level.UserLevelVo;
|
||||
import com.yizhuan.xchat_android_core.luckymoney.LuckyMoneyInfo;
|
||||
@@ -3333,6 +3334,14 @@ public final class IMNetEaseManager {
|
||||
}
|
||||
|
||||
private void noticeTarot(ChatRoomMessage msg, int second) {
|
||||
TarotAttachment attachment = (TarotAttachment) msg.getAttachment();
|
||||
|
||||
// 所在房间才触发静态飘屏
|
||||
if (second == CUSTOM_MESS_TAROT_INTERMEDIATE_PRIZE_WINNING
|
||||
&& attachment.getTarotMsgBean().getRoomUid() != AvRoomDataManager.get().getRoomUid()) {
|
||||
return;
|
||||
}
|
||||
|
||||
getChatRoomEventObservable()
|
||||
.onNext(new RoomEvent()
|
||||
.setEvent(second == CUSTOM_MESS_TAROT_INTERMEDIATE_PRIZE_WINNING
|
||||
|
Reference in New Issue
Block a user