修复bug
This commit is contained in:
@@ -119,6 +119,8 @@ UIKIT_EXTERN NSString *kTabShowAnchorCardKey;
|
||||
@property (nonatomic,assign) BOOL isFirstReachability;
|
||||
///是否刷新了
|
||||
@property (nonatomic,assign) BOOL isReload;
|
||||
///是否刷新了
|
||||
@property (nonatomic,assign) BOOL isInitReload;
|
||||
///房间外的飘屏
|
||||
@property(nonatomic,strong) PIFullScreenBannerAnimation *roomAnimation;
|
||||
|
||||
@@ -145,13 +147,16 @@ UIKIT_EXTERN NSString *kTabShowAnchorCardKey;
|
||||
[[NSNotificationCenter defaultCenter] addObserverForName:kRoomMiniNotificationKey object:nil queue:nil usingBlock:^(NSNotification * _Nonnull note) {
|
||||
[self configRoomMiniNView:note.userInfo];
|
||||
}];
|
||||
|
||||
[[NSNotificationCenter defaultCenter] addObserverForName:@"kLogout" object:nil queue:nil usingBlock:^(NSNotification * _Nonnull note) {
|
||||
self.isInitReload = NO;
|
||||
self.isReload = NO;
|
||||
}];
|
||||
[[NSNotificationCenter defaultCenter] addObserverForName:kUserCompleteInfoFinishKey object:nil queue:nil usingBlock:^(NSNotification * _Nonnull note) {
|
||||
[self completeUserInfoFinish:note.object];
|
||||
}];
|
||||
|
||||
[[NSNotificationCenter defaultCenter] addObserverForName:@"reloadnewtab" object:nil queue:nil usingBlock:^(NSNotification * _Nonnull note) {
|
||||
if (self.isReload) {
|
||||
if (self.isInitReload == NO) {
|
||||
[self initTabs:YES];
|
||||
self.isReload = YES;
|
||||
}
|
||||
@@ -253,7 +258,11 @@ UIKIT_EXTERN NSString *kTabShowAnchorCardKey;
|
||||
}
|
||||
return;
|
||||
}
|
||||
[self initTabs:YES];
|
||||
|
||||
if(self.isReload == NO){
|
||||
[self initTabs:YES];
|
||||
self.isInitReload = YES;
|
||||
}
|
||||
if ([ClientConfig shareConfig].canOpen) {
|
||||
if (self.inviteCode.length <= 0) {
|
||||
[self initQuickEnterRoom];
|
||||
@@ -417,6 +426,7 @@ UIKIT_EXTERN NSString *kTabShowAnchorCardKey;
|
||||
|
||||
#pragma mark - BaseMvpProtocol
|
||||
- (void)tokenInvalid {
|
||||
[[NSNotificationCenter defaultCenter]postNotificationName:@"kLogout" object:nil];
|
||||
XPLoginViewController *lvc = [[XPLoginViewController alloc] init];
|
||||
BaseNavigationController * nav = [[BaseNavigationController alloc] initWithRootViewController:lvc];
|
||||
nav.modalPresentationStyle = UIModalPresentationFullScreen;
|
||||
|
Reference in New Issue
Block a user