修复个播房非离开模式下礼物面板没有房主
This commit is contained in:
@@ -191,7 +191,23 @@
|
||||
userModel.position = @"-1";
|
||||
userModel.uid = roomInfo.uid;
|
||||
[array addObject:userModel];
|
||||
}
|
||||
} else if (self.delegate.getRoomInfo.type == RoomType_Anchor) {
|
||||
RoomInfoModel * roomInfo= self.delegate.getRoomInfo;
|
||||
BOOL hadContainerOwner = NO;
|
||||
for (UserInfoModel *userModel in array) {
|
||||
if (userModel.uid == roomInfo.uid) {
|
||||
hadContainerOwner = YES;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (!hadContainerOwner) {
|
||||
XPGiftUserInfoModel * userModel = [[XPGiftUserInfoModel alloc] init];
|
||||
userModel.avatar = roomInfo.avatar;
|
||||
userModel.position = @"-1";
|
||||
userModel.uid = roomInfo.uid;
|
||||
[array addObject:userModel];
|
||||
}
|
||||
}
|
||||
return array;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user