修改提交

This commit is contained in:
启星
2025-12-04 23:35:49 +08:00
parent 1c5a908dda
commit 57975eafc1
38 changed files with 216 additions and 112 deletions

View File

@@ -242,6 +242,9 @@
}
if ([roomId isEqualToString:self.roomId]) {
if ([navagationController.viewControllers containsObject:self.roomVC]) {
if (![navagationController.visibleViewController isEqual:self.roomVC]) {
[navagationController popToViewController:self.roomVC animated:YES];
}
return;
}else{
[UIApplication sharedApplication].idleTimerDisabled = YES;
@@ -296,7 +299,7 @@
[[QXRoomMessageManager shared] joinGroupWithRoomId:roomId];
[QXMineNetwork joinRoomWithRoomId:roomId successBlock:^(QXRoomModel * _Nonnull roomModel) {
if (weakSelf.roomId && ![weakSelf.roomId isEqualToString:roomId]) {
[weakSelf quitRoomWithRoomId:weakSelf.roomId];
[weakSelf quitRoomWithRoomId:weakSelf.roomId removeListener:NO];
}
// hideLoadingInView(KEYWINDOW)
// roomModel.room_info.pk_room_id = @"33";
@@ -371,7 +374,7 @@
}
}
}
-(void)quitRoomWithRoomId:(NSString *)roomId{
-(void)quitRoomWithRoomId:(NSString *)roomId removeListener:(BOOL)removeListener{
[self stopKeepTimer];
[UIApplication sharedApplication].idleTimerDisabled = NO;
///
@@ -389,7 +392,7 @@
///
[[QXAgoraEngine sharedEngine] destroyEngine];
/// 退
[[QXRoomMessageManager shared] quitGroupWithRoomId:roomId];
[[QXRoomMessageManager shared] quitGroupWithRoomId:roomId removeListener:removeListener];
[[QXGlobal shareGlobal].offLineDict removeAllObjects];
[[NSNotificationCenter defaultCenter] removeObserver:self];
if (_roomVC) {