diff --git a/AgoraChatroomUIKit.podspec b/AgoraChatroomUIKit.podspec index 155bfc7..1d73106 100644 --- a/AgoraChatroomUIKit.podspec +++ b/AgoraChatroomUIKit.podspec @@ -8,7 +8,7 @@ Pod::Spec.new do |s| s.name = 'AgoraChatroomUIKit' - s.version = '1.0.0' + s.version = '2.0.0' s.summary = 'A short description of AgoraChatroomUIKit.' s.description = <<-DESC This product is mainly designed to solve most user needs for chat rooms in pan-entertainment business scenarios. It mainly solves the problem for users that directly integrating the SDK is cumbersome and complex, and some APIs have poor experience (from the perspective of user-side developers) )And other issues. We are committed to creating chat room UIKit products with simple integration, high degree of freedom, simple process, and sufficiently detailed documentation. @@ -27,7 +27,7 @@ This product is mainly designed to solve most user needs for chat rooms in pan-e s.source_files = ['Sources/ChatroomUIKit/Classes/**/*.swift'] s.resources = ['Sources/ChatroomUIKit/**/*.bundle'] - s.dependency 'HyphenateChat' + s.dependency 'Agora_Chat_iOS', '1.3.0' s.static_framework = true diff --git a/Sources/ChatroomUIKit/Classes/Service/Implement/ChatroomServiceImplement.swift b/Sources/ChatroomUIKit/Classes/Service/Implement/ChatroomServiceImplement.swift index ea7103f..9d7fe64 100644 --- a/Sources/ChatroomUIKit/Classes/Service/Implement/ChatroomServiceImplement.swift +++ b/Sources/ChatroomUIKit/Classes/Service/Implement/ChatroomServiceImplement.swift @@ -354,9 +354,7 @@ extension ChatroomServiceImplement: ChatEventsListener { public func messagesInfoDidRecall(_ aRecallMessagesInfo: [RecallInfo]) { for info in aRecallMessagesInfo { for response in self.responseDelegates.allObjects { - if let recallMessage = info.recallMessage { - response.onMessageRecalled(roomId: recallMessage.to, message: recallMessage, by: info.recallBy) - } + response.onMessageRecalled(roomId: info.recallMessage.to, message: info.recallMessage, by: info.recallBy) } } } diff --git a/Sources/ChatroomUIKit/Classes/Service/Implement/SDKTypealiasWrapper.swift b/Sources/ChatroomUIKit/Classes/Service/Implement/SDKTypealiasWrapper.swift index 61c7799..7b1c391 100644 --- a/Sources/ChatroomUIKit/Classes/Service/Implement/SDKTypealiasWrapper.swift +++ b/Sources/ChatroomUIKit/Classes/Service/Implement/SDKTypealiasWrapper.swift @@ -39,17 +39,17 @@ public typealias MessagePinInfo = EMMessagePinInfo import AgoraChat public typealias ChatClient = AgoraChatClient public typealias ChatClientListener = AgoraChatClientDelegate -public typealias ChatEventsListener = AgoraChatChatManagerDelegate +public typealias ChatEventsListener = AgoraChatManagerDelegate public typealias ChatError = AgoraChatError public typealias ChatErrorCode = AgoraChatErrorCode -public typealias ChatMessage = AgoraChatChatMessage +public typealias ChatMessage = AgoraChatMessage public typealias ChatMessageBody = AgoraChatMessageBody public typealias ChatTextMessageBody = AgoraChatTextMessageBody public typealias ChatCustomMessageBody = AgoraChatCustomMessageBody -public typealias ChatroomEventsListener = AgoraChatChatroomManagerDelegate -public typealias ChatRoom = AgoraChatChatroom +public typealias ChatroomEventsListener = AgoraChatroomManagerDelegate +public typealias ChatRoom = AgoraChatroom public typealias UserInfo = AgoraChatUserInfo -public typealias ChatroomBeKickedReason = AgoraChatChatroomBeKickedReason +public typealias ChatroomBeKickedReason = AgoraChatroomBeKickedReason public typealias ConnectionState = AgoraChatConnectionState public typealias ChatSDKOptions = AgoraChatOptions public typealias RecallInfo = AgoraChatRecallMessageInfo