塔罗活动静态飘屏 只在本房间触发
This commit is contained in:
@@ -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