房间PK的公屏显示和更新麦序
This commit is contained in:
@@ -26,6 +26,7 @@
|
||||
#import "AttachmentModel.h"
|
||||
#import "RoomFaceSendInfoModel.h"
|
||||
#import "XPMessageRemoteExtModel.h"
|
||||
#import "RoomPKChooseUserModel.h"
|
||||
///View
|
||||
#import "XPRoomMessageTableViewCell.h"
|
||||
#import "XPRoomMessageHeaderView.h"
|
||||
@@ -354,6 +355,16 @@ NSString * const kRoomShowTopicKey = @"kRoomShowTopicKey";
|
||||
}
|
||||
}
|
||||
}
|
||||
}else if (attachment.first == CustomMessageType_Room_PK && attachment.second == Custom_Message_Sub_Room_PK_Manager_Up_Mic) {
|
||||
if (attachment.data && [attachment.data allKeys].count > 0) {
|
||||
for (NSDictionary * dic in [attachment.data allValues]) {
|
||||
RoomPKChooseUserModel * userModel = [RoomPKChooseUserModel modelWithDictionary:dic];
|
||||
if (userModel.groupType == GroupTyp_Red || userModel.groupType == GroupType_Blue) {
|
||||
return YES;
|
||||
}
|
||||
}
|
||||
}
|
||||
return NO;
|
||||
}
|
||||
return [[[self supportMessageDic] objectForKey:@(attachment.first)] containsObject:@(attachment.second)];
|
||||
}
|
||||
@@ -439,6 +450,15 @@ NSString * const kRoomShowTopicKey = @"kRoomShowTopicKey";
|
||||
[NSSet setWithObjects:
|
||||
@(Custom_Message_Sub_Hall_Super_Admin_Kick_Manager_Out_Room),
|
||||
nil],
|
||||
@(CustomMessageType_Room_PK):
|
||||
[NSSet setWithObjects:
|
||||
@(Custom_Message_Sub_Room_PK_Manager_Up_Mic),
|
||||
@(Custom_Message_Sub_Room_PK_Mode_Close),
|
||||
@(Custom_Message_Sub_Room_PK_Result),
|
||||
@(Custom_Message_Sub_Room_PK_Mode_Open),
|
||||
@(Custom_Message_Sub_Room_PK_Start),
|
||||
@(Custom_Message_Sub_Room_PK_Re_Start),
|
||||
nil],
|
||||
};
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user