提交
This commit is contained in:
@@ -65,6 +65,9 @@
|
||||
} fail:^(int code, NSString * _Nullable msg) {
|
||||
QXLOG(@"腾讯im退出登录失败");
|
||||
}];
|
||||
if (self.roomId) {
|
||||
[self quitRoomWithRoomId:self.roomId removeListener:YES];
|
||||
}
|
||||
self.isLogin = NO;
|
||||
[self removeLocalData];
|
||||
[self removeMemory];
|
||||
@@ -306,7 +309,6 @@
|
||||
}
|
||||
weakSelf.isClickJoinRoom = YES;
|
||||
[QXMineNetwork beforeJoinRoomWithRoomId:roomId successBlock:^(NSDictionary * _Nonnull dict) {
|
||||
weakSelf.isClickJoinRoom = NO;
|
||||
if (self != nil) {
|
||||
if (self->_miniView) {
|
||||
[self->_miniView removeFromSuperview];
|
||||
@@ -315,6 +317,7 @@
|
||||
}
|
||||
[[QXRoomMessageManager shared] joinGroupWithRoomId:roomId];
|
||||
[QXMineNetwork joinRoomWithRoomId:roomId successBlock:^(QXRoomModel * _Nonnull roomModel) {
|
||||
weakSelf.isClickJoinRoom = NO;
|
||||
if (weakSelf.roomId && ![weakSelf.roomId isEqualToString:roomId]) {
|
||||
[weakSelf quitRoomWithRoomId:weakSelf.roomId removeListener:NO];
|
||||
}
|
||||
@@ -329,10 +332,12 @@
|
||||
[navagationController pushViewController:weakSelf.roomVC animated:YES];
|
||||
weakSelf.roomId = roomId;
|
||||
} roomErrorBlock:^(NSString * _Nonnull roomId, NSString * _Nonnull msg) {
|
||||
weakSelf.isClickJoinRoom = NO;
|
||||
[weakSelf showAlertWithMessage:msg roomId:roomId];
|
||||
} failBlock:^(NSError * _Nonnull error, NSString * _Nonnull msg) {
|
||||
showToast(msg);
|
||||
// hideLoadingInView(KEYWINDOW)
|
||||
weakSelf.isClickJoinRoom = NO;
|
||||
}];
|
||||
} roomErrorBlock:^(NSString * _Nonnull roomId, NSString * _Nonnull msg) {
|
||||
weakSelf.isClickJoinRoom = NO;
|
||||
|
||||
Reference in New Issue
Block a user