排麦模式退出房间退出排麦

This commit is contained in:
fengshuo
2021-12-21 12:05:31 +08:00
parent 99c65e7959
commit e670a710a2
7 changed files with 95 additions and 41 deletions

View File

@@ -24,7 +24,7 @@
#import "XPSendGiftView.h"
#import "SessionListViewController.h"
#import "XPRoomMoreMenuViewController.h"
#import "XPArrangeMicViewController.h"
@interface XPRoomMenuContainerView ()
///
@@ -48,7 +48,7 @@
///
@property (nonatomic,strong) UIView * placeHolderView;
///
@property (nonatomic,weak) id<RoomHostDelegate, XPArrangeMicViewControllerDelegate> delegate;
@property (nonatomic,weak) id<RoomHostDelegate> delegate;
@end
@@ -110,13 +110,16 @@
if (error == nil) {
member = members.firstObject;
}
RoomInfoModel * roomInfo = self.delegate.getRoomInfo;
XPArrangeMicInfoModel * info = [[XPArrangeMicInfoModel alloc] init];
info.roomUid = [NSString stringWithFormat:@"%ld", self.delegate.getRoomInfo.uid];
info.roomId = [NSString stringWithFormat:@"%ld", self.delegate.getRoomInfo.roomId];
info.roomUid = [NSString stringWithFormat:@"%ld", roomInfo.uid];
info.roomId = [NSString stringWithFormat:@"%ld", roomInfo.roomId];
info.nick = roomInfo.nick;
info.roomAvatar = roomInfo.avatar;
info.roomTitle = roomInfo.title;
info.micQueue = [self.delegate getMicroQueue];
info.isManager = (member.type == NIMChatroomMemberTypeCreator || member.type == NIMChatroomMemberTypeManager);
XPArrangeMicViewController * arrangeMicVC = [[XPArrangeMicViewController alloc] initWithInfo:info];
arrangeMicVC.delegate = self.delegate;
[self.delegate.getCurrentNav presentViewController:arrangeMicVC animated:YES completion:nil];
}];
}