进退房上报,退出登陆时清空最小化信息

This commit is contained in:
chenguilong
2022-03-11 12:05:58 +08:00
parent 4db0ddcadd
commit a3a2e8d34d
6 changed files with 89 additions and 0 deletions

View File

@@ -205,6 +205,7 @@ UIKIT_EXTERN NSString * const kRoomMiniNotificationKey;
[self.presenter exitNIMRoom:roomId];
[[RtcManager instance] exitRoom];
[[XPRoomMiniManager shareManager] resetLocalMessage];
[self.presenter reportUserOutRoom:roomUid];
}
}
@@ -402,6 +403,10 @@ UIKIT_EXTERN NSString * const kRoomMiniNotificationKey;
// room/get线
self.roomInfo.onlineNum = chatRoom.onlineUserCount;
[self.stageView onRoomEntered];
//
if (self.roomInfo != nil) {
[self.presenter reportUserInterRoom:[NSString stringWithFormat:@"%zd", self.roomInfo.uid]];
}
}
- (void)enterRoomFail:(NSInteger)code {
@@ -422,6 +427,7 @@ UIKIT_EXTERN NSString * const kRoomMiniNotificationKey;
[[XPRoomMiniManager shareManager] resetLocalMessage];
[self cancelRoomArrangeMic];
[[RtcManager instance] exitRoom];
[self.presenter reportUserOutRoom:[NSString stringWithFormat:@"%ld", self.roomInfo.uid]];
[self dismissViewControllerAnimated:YES completion:nil];
}
@@ -618,6 +624,7 @@ UIKIT_EXTERN NSString * const kRoomMiniNotificationKey;
[self.presenter exitNIMRoom:[NSString stringWithFormat:@"%ld", self.roomInfo.roomId]];
[[XPRoomMiniManager shareManager] resetLocalMessage];
[[RtcManager instance] exitRoom];
[self.presenter reportUserOutRoom:roomUid];
[self dismissViewControllerAnimated:YES completion:nil];
} cancelHandler:^{
@@ -628,12 +635,14 @@ UIKIT_EXTERN NSString * const kRoomMiniNotificationKey;
[self.presenter exitNIMRoom:[NSString stringWithFormat:@"%ld", self.roomInfo.roomId]];
[[XPRoomMiniManager shareManager] resetLocalMessage];
[[RtcManager instance] exitRoom];
[self.presenter reportUserOutRoom:roomUid];
[self dismissViewControllerAnimated:YES completion:nil];
} roomUid:roomUid operUid:uid page:@"1" pageSize:@"50"];
} else {
[self.presenter exitNIMRoom:[NSString stringWithFormat:@"%ld", self.roomInfo.roomId]];
[[XPRoomMiniManager shareManager] resetLocalMessage];
[[RtcManager instance] exitRoom];
[self.presenter reportUserOutRoom:[NSString stringWithFormat:@"%ld", self.roomInfo.uid]];
[self dismissViewControllerAnimated:YES completion:nil];
}
}