修复了进房动画的问题

This commit is contained in:
fengshuo
2022-08-30 16:26:44 +08:00
parent d3d894b00c
commit b6a3b2515b
13 changed files with 50 additions and 19 deletions

View File

@@ -56,6 +56,7 @@
#import "RoomHostDelegate.h"
#import "RoomGuestDelegate.h"
#import "XCHUDTool.h"
UIKIT_EXTERN NSString * const kRoomGiftEffectUpdateNotificationKey;
UIKIT_EXTERN NSString * const kRoomMiniNotificationKey;
@@ -205,6 +206,7 @@ NSString * const kHadQuitOtherRoomKey = @"kHadQuitOtherRoomKey";//是否退出
if (self.isMiniEnter) {
[self initEnterRoomSuccess:[XPRoomMiniManager shareManager].getRoomInfo user:[XPRoomMiniManager shareManager].getUserInfo];
} else {
[XCHUDTool showAnchorLoading:self.navigationController.view];
[self.presenter initEnterRoom:self.roomUid user:[AccountInfoStorage instance].getUid];
}
///
@@ -665,13 +667,13 @@ NSString * const kHadQuitOtherRoomKey = @"kHadQuitOtherRoomKey";//是否退出
}
#pragma mark - XPRoomProtocol
- (void)initEnterRoomSuccess:(RoomInfoModel *)roomInfo user:(UserInfoModel *)userInfo {
[self hideHUD];
userInfo.fromUid = self.fromUid;
userInfo.fromType = self.fromType;
userInfo.fromNick = self.fromNick;
self.hasAnimationEffect = roomInfo.hasAnimationEffect;
self.roomInfo = roomInfo;
self.userInfo = userInfo;
[self hideHUD];
if (roomInfo.type == RoomType_Anchor) {//
[self handleInitAnchorRoom];
[self showAnchorScrollTipView];
@@ -735,6 +737,8 @@ NSString * const kHadQuitOtherRoomKey = @"kHadQuitOtherRoomKey";//是否退出
}
- (void)openRoomSuccess:(RoomInfoModel *)roomInfo {
[XCHUDTool hideHUDInView:self.navigationController.view];
[self hideHUD];
self.roomInfo = roomInfo;
if (roomInfo.type == RoomType_Anchor) {
[self handleInitAnchorRoom];
@@ -752,6 +756,7 @@ NSString * const kHadQuitOtherRoomKey = @"kHadQuitOtherRoomKey";//是否退出
}
- (void)enterRoomSuccess:(NIMChatroom *)chatRoom {
[XCHUDTool hideHUDInView:self.navigationController.view];
// room/get线
self.roomInfo.onlineNum = chatRoom.onlineUserCount;
[self.stageView onRoomEntered];
@@ -766,6 +771,7 @@ NSString * const kHadQuitOtherRoomKey = @"kHadQuitOtherRoomKey";//是否退出
}
- (void)enterRoomFail:(NSInteger)code {
[XCHUDTool hideHUDInView:self.navigationController.view];
[self hideHUD];
if (code == 13003) {
[self showErrorToast:@"您已被管理员拉黑"];