Skip to content

Commit a19002d

Browse files
author
zsw666
authored
sync (#422)
10.5.2 修复已知问题
1 parent 956ee53 commit a19002d

File tree

9 files changed

+54
-56
lines changed

9 files changed

+54
-56
lines changed

IMUIKitOC/IMUIKitOCExample/Podfile

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,19 @@ target 'IMUIKitOCExample' do
1010
pod 'YXLogin', '1.1.0'
1111

1212
# 基础库
13-
pod 'NEChatKit', '10.5.1'
13+
pod 'NEChatKit', '10.5.2'
1414

1515
# UI 组件,依次为通讯录组件、会话列表组件、会话(聊天)组件、群相关设置组件
16-
pod 'NEChatUIKit', '10.5.1'
17-
pod 'NEContactUIKit', '10.5.1'
18-
pod 'NEConversationUIKit', '10.5.1'
19-
pod 'NETeamUIKit', '10.5.1'
16+
pod 'NEChatUIKit', '10.5.2'
17+
pod 'NEContactUIKit', '10.5.2'
18+
pod 'NEConversationUIKit', '10.5.2'
19+
pod 'NETeamUIKit', '10.5.2'
2020

2121
# 扩展库 - 地理位置组件
22-
pod 'NEMapKit', '10.5.1'
22+
pod 'NEMapKit', '10.5.2'
2323

2424
# 扩展库 - AI 划词搜索
25-
pod 'NEAISearchKit', '1.0.5'
25+
pod 'NEAISearchKit', '10.5.2'
2626

2727
# 扩展库 - 呼叫组件
2828
pod 'NERtcCallKit/NOS_Special', '3.1.0'
@@ -35,13 +35,13 @@ target 'IMUIKitOCExample' do
3535

3636

3737
# 如果需要查看UI部分源码请注释掉以上在线依赖,打开下面的本地依赖
38-
# pod 'NEContactUIKit', :path => 'NEContactUIKit/NEContactUIKit.podspec'
39-
# pod 'NEConversationUIKit', :path => 'NEConversationUIKit/NEConversationUIKit.podspec'
40-
# pod 'NETeamUIKit', :path => 'NETeamUIKit/NETeamUIKit.podspec'
41-
# pod 'NEChatUIKit', :path => 'NEChatUIKit/NEChatUIKit.podspec'
42-
# pod 'NEMapKit', :path => 'NEMapKit/NEMapKit.podspec'
43-
# pod 'NEAISearchKit', :path => 'NEAISearchKit/NEAISearchKit.podspec'
44-
# pod 'NERtcCallUIKit', :path => 'NERtcCallUIKit/NERtcCallUIKit.podspec'
38+
# pod 'NEContactUIKit', :path => '../../NEContactUIKit/NEContactUIKit.podspec'
39+
# pod 'NEConversationUIKit', :path => '../../NEConversationUIKit/NEConversationUIKit.podspec'
40+
# pod 'NETeamUIKit', :path => '../../NETeamUIKit/NETeamUIKit.podspec'
41+
# pod 'NEChatUIKit', :path => '../../NEChatUIKit/NEChatUIKit.podspec'
42+
# pod 'NEMapKit', :path => '../../NEMapKit/NEMapKit.podspec'
43+
# pod 'NEAISearchKit', :path => '../../NEAISearchKit/NEAISearchKit.podspec'
44+
# pod 'NERtcCallUIKit', :path => '../../NERtcCallUIKit/NERtcCallUIKit.podspec'
4545

4646

4747
end

NEAISearchKit/NEAISearchKit.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
Pod::Spec.new do |s|
1010
s.name = 'NEAISearchKit'
11-
s.version = '1.0.5'
11+
s.version = '10.5.2'
1212
s.summary = 'Netease XKit'
1313

1414
# This description is used to generate tags and improve search results.

NEChatUIKit/NEChatUIKit.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Pod::Spec.new do |s|
1616
#
1717

1818
s.name = 'NEChatUIKit'
19-
s.version = '10.5.1'
19+
s.version = '10.5.2'
2020
s.summary = 'Chat Module of IM.'
2121

2222
# This description is used to generate tags and improve search results.

NEChatUIKit/NEChatUIKit/Classes/Chat/ViewModel/ChatViewModel.swift

Lines changed: 27 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -341,42 +341,40 @@ open class ChatViewModel: NSObject {
341341
self?.getMessageReceipts(messages: messageArray) { reloadIndexs, error in
342342
group.enter()
343343
self?.chatRepo.getPinnedMessageList(conversationId: conversationId) { [weak self] pinList, error in
344-
if let pinList = pinList {
345-
var userIds = pinList.map(\.operatorId)
346-
347-
// 群聊需要获取群昵称
348-
userIds += self?.messages.compactMap { $0.message?.senderId } ?? []
349-
group.enter()
350-
self?.loadShowName(userIds, self?.sessionId) { [weak self] in
351-
352-
// 获取头像昵称
353-
for model in self?.messages ?? [] {
354-
if let uid = ChatMessageHelper.getSenderId(model.message),
355-
let fullName = self?.getShowName(uid) {
356-
let userFriend = ChatMessageHelper.getUserFromCache(uid)
357-
model.avatar = userFriend?.user?.avatar
358-
model.fullName = fullName
359-
model.shortName = NEFriendUserCache.getShortName(userFriend?.showName() ?? "")
360-
}
344+
var userIds = pinList?.map(\.operatorId) ?? []
361345

362-
for pin in pinList {
363-
if model.message?.messageClientId == pin.messageRefer?.messageClientId {
364-
model.isPined = true
365-
model.pinAccount = pin.operatorId
366-
model.pinShowName = self?.getShowName(pin.operatorId)
367-
break
368-
}
369-
}
346+
// 群聊需要获取群昵称
347+
userIds += self?.messages.compactMap { $0.message?.senderId } ?? []
348+
group.enter()
349+
self?.loadShowName(userIds, self?.sessionId) { [weak self] in
350+
351+
// 获取头像昵称
352+
for model in self?.messages ?? [] {
353+
if let uid = ChatMessageHelper.getSenderId(model.message),
354+
let fullName = self?.getShowName(uid) {
355+
let userFriend = ChatMessageHelper.getUserFromCache(uid)
356+
model.avatar = userFriend?.user?.avatar
357+
model.fullName = fullName
358+
model.shortName = NEFriendUserCache.getShortName(userFriend?.showName() ?? "")
359+
}
370360

371-
group.enter()
372-
self?.loadReply(model) {
373-
group.leave()
361+
for pin in pinList ?? [] {
362+
if model.message?.messageClientId == pin.messageRefer?.messageClientId {
363+
model.isPined = true
364+
model.pinAccount = pin.operatorId
365+
model.pinShowName = self?.getShowName(pin.operatorId)
366+
break
374367
}
375368
}
376-
group.leave()
369+
370+
group.enter()
371+
self?.loadReply(model) {
372+
group.leave()
373+
}
377374
}
378375
group.leave()
379376
}
377+
group.leave()
380378
}
381379
group.leave()
382380
}

NEContactUIKit/NEContactUIKit.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
Pod::Spec.new do |s|
1010
s.name = 'NEContactUIKit'
11-
s.version = '10.5.1'
11+
s.version = '10.5.2'
1212
s.summary = 'Netease XKit'
1313

1414
# This description is used to generate tags and improve search results.

NEConversationUIKit/NEConversationUIKit.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
Pod::Spec.new do |s|
1010
s.name = 'NEConversationUIKit'
11-
s.version = '10.5.1'
11+
s.version = '10.5.2'
1212
s.summary = 'Netease XKit'
1313

1414
# This description is used to generate tags and improve search results.

NEMapKit/NEMapKit.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
Pod::Spec.new do |s|
1010
s.name = 'NEMapKit'
11-
s.version = '10.5.1'
11+
s.version = '10.5.2'
1212
s.summary = 'Netease XKit'
1313

1414
# This description is used to generate tags and improve search results.

NETeamUIKit/NETeamUIKit.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
Pod::Spec.new do |s|
1010
s.name = 'NETeamUIKit'
11-
s.version = '10.5.1'
11+
s.version = '10.5.2'
1212
s.summary = 'Netease XKit'
1313

1414
# This description is used to generate tags and improve search results.

Podfile

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,19 @@ target 'app' do
77
use_frameworks!
88

99
# 基础库
10-
pod 'NEChatKit', '10.5.1'
10+
pod 'NEChatKit', '10.5.2'
1111

1212
# UI 组件,依次为通讯录组件、会话列表组件、会话(聊天)组件、群相关设置组件
13-
pod 'NEChatUIKit', '10.5.1'
14-
pod 'NEContactUIKit', '10.5.1'
15-
pod 'NEConversationUIKit', '10.5.1'
16-
pod 'NETeamUIKit', '10.5.1'
13+
pod 'NEChatUIKit', '10.5.2'
14+
pod 'NEContactUIKit', '10.5.2'
15+
pod 'NEConversationUIKit', '10.5.2'
16+
pod 'NETeamUIKit', '10.5.2'
1717

1818
# 扩展库 - 地理位置组件
19-
pod 'NEMapKit', '10.5.1'
19+
pod 'NEMapKit', '10.5.2'
2020

2121
# 扩展库 - AI 划词搜索
22-
pod 'NEAISearchKit', '1.0.5'
22+
pod 'NEAISearchKit', '10.5.2'
2323

2424
# 扩展库 - 呼叫组件
2525
pod 'NERtcCallKit/NOS_Special', '3.1.0'

0 commit comments

Comments
 (0)