修复了年度礼物在房间内无法显示的问题
This commit is contained in:
@@ -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];
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user