修复了年度礼物在房间内无法显示的问题

This commit is contained in:
fengshuo
2022-12-29 17:47:30 +08:00
parent fc7a556b6c
commit 9152df337f

View File

@@ -790,6 +790,9 @@ UIKIT_EXTERN NSString *kTabShowAnchorCardKey;
#pragma mark -
- (void)receiveBroadcastGift:(AttachmentModel *)attachment {
XPRoomGiftBroadCastModel *giftNotifyInfo = [XPRoomGiftBroadCastModel modelWithJSON:attachment.data];
if (!giftNotifyInfo.ceremonyGift) {
return;
}
if (self.giftBroadcastQueue.count == 0) {
[self createGiftBroadcastViewAnimation:giftNotifyInfo];
}
@@ -801,7 +804,7 @@ UIKIT_EXTERN NSString *kTabShowAnchorCardKey;
view.delegate = self;
view.frame = CGRectMake(KScreenWidth, 35 + statusbarHeight, KScreenWidth, 150);
view.model = giftModel;
[self.view addSubview:view];
[[XCCurrentVCStackManager shareManager].getCurrentVC.view addSubview:view];
[self beginGiftBraodcastViewAnimation:view notifyStaySecond:giftModel.notifyStaySecond];
}