修复优化bug

This commit is contained in:
liyuhua
2024-03-23 18:21:29 +08:00
parent 2b5a1eb2a5
commit 43e5f14a83
12 changed files with 78 additions and 12 deletions

View File

@@ -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