修复优化bug
This commit is contained in:
@@ -181,7 +181,7 @@ class RoomVC: BaseViewController, HiddenNavigationBarProtocol {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
private func requestData(){
|
||||
let uid = AuthManager.userUid
|
||||
|
||||
@@ -301,7 +301,9 @@ extension RoomVC : NIMChatManagerDelegate, NIMChatroomManagerDelegate, NIMLoginM
|
||||
|
||||
if msg.messageType == .notification{
|
||||
if let notMsg = msg.messageObject as? NIMNotificationObject,let content = notMsg.content as? NIMChatroomNotificationContent{
|
||||
|
||||
switch content.eventType {
|
||||
|
||||
case .enter:
|
||||
updateOnlineNum(num: 1)
|
||||
chatScreenView.getMsgListWithHistory()
|
||||
@@ -315,7 +317,10 @@ extension RoomVC : NIMChatManagerDelegate, NIMChatroomManagerDelegate, NIMLoginM
|
||||
case .exit:
|
||||
updateOnlineNum(num: -1)
|
||||
break
|
||||
|
||||
case .closed:
|
||||
print("111")
|
||||
break
|
||||
|
||||
default:
|
||||
|
||||
break
|
||||
|
Reference in New Issue
Block a user