修改了小游戏房切换到普通房的时候显示异常的问题
This commit is contained in:
@@ -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) {
|
||||
///普通房 切换为相亲房
|
||||
|
Reference in New Issue
Block a user