公会超管房间内权限的问题
This commit is contained in:
@@ -27,6 +27,7 @@
|
||||
#import "XPReleaseRadioModel.h"
|
||||
#import "XPNobleTrumpetModel.h"
|
||||
#import "GuildSuperAdminInfoModel.h"
|
||||
#import "XPKickUserModel.h"
|
||||
///View
|
||||
#import "BaseNavigationController.h"
|
||||
#import "XPRoomActivityContainerView.h"
|
||||
@@ -654,12 +655,24 @@ UIKIT_EXTERN NSString * const kRoomMiniNotificationKey;
|
||||
RoomInfoModel * roomInfo = [RoomInfoModel modelWithDictionary:dic];
|
||||
self.roomInfo.isCloseScreen = roomInfo.isCloseScreen;
|
||||
[self.menuContainerView onRoomUpdate];
|
||||
} if(attachment.first == CustomMessageType_Queue && attachment.second == Custom_Message_Sub_Queue_Invite) {
|
||||
} else if(attachment.first == CustomMessageType_Queue && attachment.second == Custom_Message_Sub_Queue_Invite) {
|
||||
NSDictionary *dic = attachment.data;
|
||||
NSString *uid = dic[@"uid"];
|
||||
if (uid.integerValue == [AccountInfoStorage instance].getUid.integerValue) {
|
||||
[self cancelRoomArrangeMic];
|
||||
}
|
||||
} else if(attachment.first == CustomMessageType_Hall_Super_Admin && attachment.second == Custom_Message_Sub_Hall_Super_Admin_Kick_Manager_Out_Room) {
|
||||
XPKickUserModel * userInfo = [XPKickUserModel modelWithJSON:attachment.data];
|
||||
if (userInfo.targetUid == [AccountInfoStorage instance].getUid.integerValue) {
|
||||
[self.presenter exitNIMRoom:[NSString stringWithFormat:@"%ld", self.roomInfo.roomId]];
|
||||
[[XPRoomMiniManager shareManager] resetLocalMessage];
|
||||
[self cancelRoomArrangeMic];
|
||||
[[RtcManager instance] exitRoom];
|
||||
[self.presenter reportUserOutRoom:[NSString stringWithFormat:@"%ld", self.roomInfo.uid]];
|
||||
[self.littleGameView handleSelfInExitEvent];
|
||||
[self.littleGameView destroyMG];
|
||||
[self dismissViewControllerAnimated:YES completion:nil];
|
||||
}
|
||||
}
|
||||
[self.messageContainerView handleNIMCustomMessage:message];
|
||||
}
|
||||
|
Reference in New Issue
Block a user