塔罗活动静态飘屏 只在本房间触发

This commit is contained in:
wzq
2023-09-26 19:03:07 +08:00
parent 5cce2cb68c
commit 1998258bda
2 changed files with 10 additions and 1 deletions

View File

@@ -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