修改了小游戏房切换到普通房的时候显示异常的问题

This commit is contained in:
fengshuo
2022-04-01 23:41:44 +08:00
committed by chenguilong
parent fa8760a4aa
commit 4883bb4879
3 changed files with 9 additions and 3 deletions

View File

@@ -461,6 +461,7 @@ UIKIT_EXTERN NSString * const kRoomMiniNotificationKey;
- (void)openRoomSuccess:(RoomInfoModel *)roomInfo {
self.roomInfo = roomInfo;
[self changeStageViewOnRoomUpdate];
[self.roomHeaderView onRoomUpdate];
[self.activityContainerView onRoomUpdate];
[self.backContainerView onRoomUpdate];
@@ -531,6 +532,10 @@ UIKIT_EXTERN NSString * const kRoomMiniNotificationKey;
NSMutableDictionary *lastRoomInfoDic = [NSMutableDictionary dictionaryWithDictionary:[self.roomInfo model2dictionary]];
[lastRoomInfoDic addEntriesFromDictionary: ((NSString *)data[@"roomInfo"]).toJSONObject];
RoomInfoModel *newRoomInfo = [RoomInfoModel modelWithJSON:lastRoomInfoDic];
//TODO: mgid
if (newRoomInfo.type != RoomType_MiniGame) {
newRoomInfo.mgId = 0;
}
newRoomInfo.hasAnimationEffect = self.hasAnimationEffect;
if (newRoomInfo.roomModeType == RoomModeType_Open_Blind && self.roomInfo.roomModeType != RoomModeType_Open_Blind) {
///