进退房上报,退出登陆时清空最小化信息
This commit is contained in:
@@ -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];
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user